This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Minify Fix


This plugin is a fork of WP Minify to fix bugs and add features, because it has not been updated since 2012-6-4.

This plugin integrates the Minify engine
into your WordPress blog. Once enabled, this plugin will combine and compress
JS and CSS files to improve page load time.

What has been fixed?

  • Minify engine updated to version 2.1.7
  • Cache interval option has been fixed
  • Move CSS-@imports to the top of the output
  • Bottom CSS- and JavaScript output fixed
  • Support for script tags without type="text/javascript"
  • Detection of protocol-relative URLs as external file (e.g. Google AdSense)
  • New option for the HTML5 async attribute
  • A separate JavaScript file in the footer is now possible

How Does it Work?

WP Minify Fix grabs JS/CSS files in your generated WordPress page and passes that
list to the Minify engine. The Minify engine then returns a consolidated,
minified, and compressed script or style for WP Minify to reference in the
WordPress header.


  • Easily integrate Minify into your WordPress blog.
  • Minifies JavaScript, CSS, and HTML.
  • Debug tools to help you debug your issues.
  • Ability to include extra JS and CSS files for Minifying.
  • Ability to exclude certain JS and CSS files for Minifying.
  • Minified JS and CSS files can be placed wherever you want.
  • Support for to minifying external files via caching.
  • Ability to pass extra arguments to Minify engine.
  • Expire headers for minified JS and CSS files.
  • Detection and elimination of duplicate sources.
  • Plugin hooks!

You can also commit changes on our Github repository.


All contents under the wp-minify-fix/min/ directory is licensed under
New BSD License (which is
GPL compatible). All other
contents within this package is licensed under GPLv3.


  • Options
  • Before WP Minify (11 JS requests @ 111KB)
  • After WP Minify (1 JS request @ 30KB)


  1. Upload the plugin to your plugins folder: ‘wp-content/plugins/’
  2. Make sure ‘wp-content/plugins/wp-minify-fix/cache’ is writeable by the
    web server. (try ‘chmod 777 wp-content/plugins/wp-minify-fix/cache’)
  3. Activate the ‘WP Minify Fix plugin from the Plugins admin panel.


Installation Instructions
  1. Upload the plugin to your plugins folder: ‘wp-content/plugins/’
  2. Make sure ‘wp-content/plugins/wp-minify-fix/cache’ is writeable by the
    web server. (try ‘chmod 777 wp-content/plugins/wp-minify-fix/cache’)
  3. Activate the ‘WP Minify Fix plugin from the Plugins admin panel.
Where is the documentation?

If you are having problems with this plugin, please first take a look at the
various links under the “Documentation” section of the
plugin page.

I still can’t get it to work after reading the documentation!

Please take a look at documentation available on the
plugin page.
to see if any of them can help you. If not, feel free to post your issues
on the appropriate plugin support forum.
I will try my best to help you resolve any issues that you are having.


January 29, 2017
It will not let me turn off Enable HTML Minification option Enable HTML Minification. Always return to check, and than broke my website.
September 3, 2016
It’s working fine on the free theme “Parabola” without breaking any front-end structure.
September 3, 2016
Works great. Tried a number of other ‘minify’ plugins, but this is by far the most simple and straightforward IMHO. Has necessary options to exclude and include files, but does not overload me with a bunch of options that are ill-defined.
Read all 40 reviews

Contributors & Developers

“WP Minify Fix” is open source software. The following people have contributed to this plugin.


Translate “WP Minify Fix” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Duplicate footer scripts bug fixed
  • PHP warning message in some scenarios fixed
  • Newlines before the first attribute in open tags removed
  • Compatibility changes


  • Added option for the HTML5 async attribute
  • Added option for a separate JavaScript file in the footer
  • Tabs are used instead of spaces in the PHP code
  • Bugfixes
  • Small changes


  • Support for script-tags without type="text/javascript"
  • Detection of protocol-relative URLs as external file (e.g. Google AdSense)


  • Bottom CSS- and JavaScript output fixed


  • Move CSS-@imports to the top of the output


  • Minify engine 2.1.7 updated


  • WP Minify Fix released
  • Cache interval fixed


  • Tested with 3.3.2
  • No longer showing attribution link by default.
  • Changed donation phrasing.


  • Removed unnecessary error_log line.


  • Set User Agent as “WP-Minify” when curling things.
  • Cleaned up some old code.
  • Added last modified time to pretty URLs.
  • Updating it_IT translation (thanks Gianni Diiurno!).
  • Added uk translation (thanks Jurko Chervony!).


  • Extra precautions when printing last modified time variable (?m= vs. &m=)


  • Fixed documentation.


  • Made pretty URL off by default since it doesn’t work for everybody.


  • Added it_IT translation (thanks Gianni Diurno!)


  • Re-did options page and documentation to make things a bit more clear.


  • Fixed incomplete /min/config.php file.


  • Fixed “Class ‘WPMinifyCommon’ not found” errors that some are seeing.
  • Added pretty URL for minified files so now you can stick it on a CDN.
  • Organized options page.


  • Fixed conflict with W3 Total Cache.


  • Fixed “Invalid argument supplied for foreach()” error that some are having.


  • Adding options for excluding certain URIs from WP Minify parsing.


  • Reverting bbpress fix since it causs Minify to not even run.


  • Added option to minify HTML.
  • Added ability to NOT minify when “wp-minify-off=1” is in URL.
  • Added option to report errors through FirePHP.
  • Added “wp_minify_js_url” filter
  • Added “wp_minify_css_url” filter
  • Added “wp_minify_content” filter
  • Enhanced “JavaScript files to include” feature.
  • Enhanced “CSS files to include” feature.
  • Fixed persistent SSL issue (Thanks belg4mit!)
  • Fixed bbpress issue (Thanks foobar!)


  • Fixed removing trailing slash in base path.


  • Fixed “delimiter” error.
  • Fixed admin sidebar.


  • Automatically set far future expiration headers in Minify config (30 days).
  • Automatically detect subdirectory from siteurl for passing as base path
    for Minify engine.


  • Added SSL option to force http -> https on secured pages.
  • Updated common.php and some other maintenance.


  • Fixed WPMU subdirectory bug.


  • Added ability to de-dupe sources
  • Added ability to manually specify location of minified JS and CSS files.
  • Fixed XHTML compliance bugs
  • Cleaned empty lines in HTML output


  • Fixed detecting if script is local or not.


  • Fixed corner case on expire headers implementation.


  • Add expire headers to combined JS and CSS files (Thanks Jan Seidl!).


  • Fixed extra arguments for Minify engine.


  • Added advanced options:
    • Minification on external files
    • Place JavaScript in footer
    • Extra arguments for Minify engine
  • Removed wp_path option (Thanks Jan Seidl!)
  • Fixed Output Buffer conflicts with other plugins that use output buffering
    such as All-in-One SEO and Anarchy Media Player.


  • Fixed URL building (bug introduced by last release).
  • Brought back WordPress path settings as some people with .htaccess issues
    may still need this.


  • Fixed CSS regex to catch “media=”” case. (Thanks forum user bobmarkl33!)
  • Modified minified JavaScript injection to the end of (Thanks forum
    user bobmarl33!)
  • Fixed WP Minify working with blogs installed in subdirectory of webroot.
    (Thanks forum user Luke!)
  • Removed WordPress path settings as this is no longer needed per Luke’s fix.


  • Fixed JavaScript minification failure for large number of files.


  • Fixed admin array_keys() bug
  • Updated .pot file.


  • Added .pot file.


  • Upgraded to Minify engine 2.1.3.
  • Added automatic Minify engine cache configuration.
  • Fixed HTML5


header> conflict.
* Fixed bug from blog installed in subdirectory.
* Fixed localization.


  • Added option to disable JS or CSS minification.
  • Fixed a few bugs.
  • Admin facelift


  • Fixed non-replaced tag for valid XHTML usage.


  • Automatically exclude CSS conditionals.
  • Automatically exclude CSS media != all, or screen.
  • Automatically exclude https URLs.
  • Added sanity checking for buffer start & stop.
  • Moved buffer start to init with priority 99999.
  • Fixed “strpos()” warnings when settings have empty lines.


  • Fixed “URL file-access disabled” errors.
  • Fixed “implode()” warnings.


  • WP 2.8 Compatibility


  • Fixed another CSS exclusion bug (src_match -> href_match).
  • Fixed JS WP Minify bug passing double forward slashes when not needed.
  • Added media=”screen” for minified CSS reference.


  • Changed the way CSS and JS files are picked up. No more wp_enqueue_*
  • Fixed exclusion bug where specified files are not excluded from
  • Removed OMNINOGGIN dashboard widget.


  • Fixed array_slice() warning in the admin dashboard.
  • Fixed version check to not break page when $wp_version is empty.


  • Initial release


This plugin utilizes the Minify engine
coded by Steve Clay and Ryan Grove
to perform all JS & CSS Minifying.