Title: WP Minify Fix
Author: NodeCode
Published: <strong>April 7, 2014</strong>
Last modified: October 22, 2015

---

Search plugins

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.

![](https://s.w.org/plugins/geopattern-icon/wp-minify-fix.svg)

# WP Minify Fix

 By [NodeCode](https://profiles.wordpress.org/nodecode/)

[Download](https://downloads.wordpress.org/plugin/wp-minify-fix.1.4.1.zip)

 * [Details](https://mfe.wordpress.org/plugins/wp-minify-fix/#description)
 * [Reviews](https://mfe.wordpress.org/plugins/wp-minify-fix/#reviews)
 *  [Installation](https://mfe.wordpress.org/plugins/wp-minify-fix/#installation)
 * [Development](https://mfe.wordpress.org/plugins/wp-minify-fix/#developers)

 [Support](https://wordpress.org/support/plugin/wp-minify-fix/)

## Description

This plugin is a fork of [WP Minify](https://wordpress.org/plugins/wp-minify/) to
fix bugs and add features, because it has not been updated since 2012-6-4.

This plugin integrates the [Minify engine](https://github.com/mrclay/minify)
 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.

#### Features

 * 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](https://github.com/nodecode/wp-minify-fix).

### License

All contents under the wp-minify-fix/min/ directory is licensed under
 [New BSD License](http://www.opensource.org/licenses/bsd-license.php)(
which is [GPL](http://www.gnu.org/copyleft/gpl.html) compatible). All other contents
within this package is licensed under GPLv3.

## Screenshots

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

## Installation

 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.

## FAQ

  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](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/).

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

Please take a look at documentation available on the
 [plugin page](http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/).
to see if any of them can help you. If not, feel free to post your issues on the
appropriate [plugin support forum](http://omninoggin.com/forum). I will try my best
to help you resolve any issues that you are having.

## Reviews

![](https://secure.gravatar.com/avatar/caa0479b58a9d6203ac99edc2cded177c49468c0c41d19f67d14acddf8fb2b03?
s=60&d=retro&r=g)

### 󠀁[Plugin is broken](https://wordpress.org/support/topic/plugin-is-broken-19/)󠁿

 [deffectrix](https://profiles.wordpress.org/deffectrix/) 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.

![](https://secure.gravatar.com/avatar/b859b72453f063766b27e374df31a955300ef4da20a48031575ffb11841cc4b6?
s=60&d=retro&r=g)

### 󠀁[Good job and simple](https://wordpress.org/support/topic/good-job-and-simple/)󠁿

 [fcojgodoy](https://profiles.wordpress.org/fcojgodoy/) January 20, 2017

Good job and simple

![](https://secure.gravatar.com/avatar/d615bdf2c495461fe2e267eaeb7a73a3f6bc2dc16087efbf0a6eda7918bdfdb5?
s=60&d=retro&r=g)

### 󠀁[Simple and effective!](https://wordpress.org/support/topic/simple-and-effective-670/)󠁿

 [olasarri](https://profiles.wordpress.org/olasarri/) December 6, 2016

Improved my pagespeed and ranking at Pingdom Tools.

![](https://secure.gravatar.com/avatar/c9626d4a7cc040d73216ee6e1c6dfd260837ae5bbec7a9b97bbde10887cc66f3?
s=60&d=retro&r=g)

### 󠀁[doesnt work](https://wordpress.org/support/topic/doesnt-work-852/)󠁿

 [ron1966](https://profiles.wordpress.org/ron1966/) September 28, 2016

doesnt work

![](https://secure.gravatar.com/avatar/b6cb0edc9e2ca378fc05a0674728870eb1318714758c71ffdc4b7bd896776b27?
s=60&d=retro&r=g)

### 󠀁[Good!!](https://wordpress.org/support/topic/good-2058/)󠁿

 [ccsx](https://profiles.wordpress.org/ccsx/) September 3, 2016

It’s working fine on the free theme “Parabola” without breaking any front-end structure.

![](https://secure.gravatar.com/avatar/e102487c802463337942b4f9c66c016255e4c530fbed30ebad70741f668a0763?
s=60&d=retro&r=g)

### 󠀁[Simple and Effective](https://wordpress.org/support/topic/simple-and-effective-648/)󠁿

 [bjsatola](https://profiles.wordpress.org/bjsatola/) 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 ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/)

## Contributors & Developers

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

Contributors

 *   [ NodeCode ](https://profiles.wordpress.org/nodecode/)
 *   [ Ty Bone ](https://profiles.wordpress.org/madeinthayaland/)

[Translate “WP Minify Fix” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-minify-fix)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-minify-fix/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-minify-fix/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wp-minify-fix/) 
by [RSS](https://plugins.trac.wordpress.org/log/wp-minify-fix/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4.1

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

#### 1.4.0

 * 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

#### 1.3.4

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

#### 1.3.3

 * Bottom CSS- and JavaScript output fixed

#### 1.3.2

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

#### 1.3.1

 * Minify engine 2.1.7 updated

#### 1.3.0

 * WP Minify Fix released
 * Cache interval fixed

#### 1.2.0

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

#### 1.1.8

 * Removed unnecessary error_log line.

#### 1.1.7

 * 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!).

#### 1.1.6

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

#### 1.1.5

 * Fixed documentation.

#### 1.1.4

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

#### 1.1.3

 * Added it_IT translation (thanks Gianni Diurno!)

#### 1.1.2

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

#### 1.1.1

 * Fixed incomplete /min/config.php file.

#### 1.1

 * 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.

#### 1.0.4

 * Fixed conflict with W3 Total Cache.

#### 1.0.3

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

#### 1.0.2

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

#### 1.0.1

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

#### 1.0.0

 * 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!)

#### 0.9.3

 * Fixed removing trailing slash in base path.

#### 0.9.2

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

#### 0.9.1

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

#### 0.9.0

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

#### 0.8.1

 * Fixed WPMU subdirectory bug.

#### 0.8.0

 * 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

#### 0.7.4

 * Fixed detecting if script is local or not.

#### 0.7.3

 * Fixed corner case on expire headers implementation.

#### 0.7.2

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

#### 0.7.1

 * Fixed extra arguments for Minify engine.

#### 0.7.0

 * 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.

#### 0.6.5

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

#### 0.6.4

 * 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.

#### 0.6.3

 * Fixed JavaScript minification failure for large number of files.

#### 0.6.2

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

#### 0.6.1

 * Added .pot file.

#### 0.6

 * 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.

#### 0.5

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

#### 0.4.1

 * Fixed non-replaced tag for valid XHTML usage.

#### 0.4

 * 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.

#### 0.3.1

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

#### 0.3

 * WP 2.8 Compatibility

#### 0.2.1

 * 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.

#### 0.2

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

#### 0.1.1

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

#### 0.1

 * Initial release

#### Credits

This plugin utilizes the [Minify engine](http://code.google.com/p/minify/)
 coded
by [Steve Clay](http://mrclay.org/) and [Ryan Grove](http://wonko.com) to perform
all JS & CSS Minifying.

## Meta

 *  Version **1.4.1**
 *  Last updated **8 years ago**
 *  Active installations **900+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-minify-fix/)
 * Tags
 * [css](https://mfe.wordpress.org/plugins/tags/css/)[html](https://mfe.wordpress.org/plugins/tags/html/)
   [javascript](https://mfe.wordpress.org/plugins/tags/javascript/)[JS](https://mfe.wordpress.org/plugins/tags/js/)
   [minify](https://mfe.wordpress.org/plugins/tags/minify/)
 *  [Advanced View](https://mfe.wordpress.org/plugins/wp-minify-fix/advanced/)

## Ratings

 4 out of 5 stars.

 *  [  28 5-star reviews     ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/?filter=2)
 *  [  8 1-star reviews     ](https://wordpress.org/support/plugin/wp-minify-fix/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-minify-fix/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-minify-fix/reviews/)

## Contributors

 *   [ NodeCode ](https://profiles.wordpress.org/nodecode/)
 *   [ Ty Bone ](https://profiles.wordpress.org/madeinthayaland/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-minify-fix/)