-
New Features
- Added support for Friendly Minify strings, e.g.
http://example.com/path/to/script.js (best used with CDN). This feature should work well on nginx server.
- Provides a much better method to capture and print JS, CSS files.
- Dependencies are more intelligently handled. This should fix many incompatibility issues with other plugins. Note: users of Leaflet Map Markers plugin will still need to add
leafletmapsmarker handle to Script to be ignored (not minified) .
- Provides full support for conditional and alternate CSS files.
- Auto-detects CSS, JS files used on site. Added a new admin page to easily add CSS, JS files to desired positions.
- Added a new position called
oblivion , admin can put CSS, JS files to this position to remove them completely from the site, this is useful when you want to remove duplicate files.
- You can now control Minify Library's settings via
wp-admin setting page.
- Basic CDN support with SSL.
-
Bugs fixed
- Fixed issues with certain installations where WordPress is installed into a sub-directory or
wp-content folder is moved.
- Fixed incompatibility issues with protocol-relative URLs.
- Fixed possible incompatibility issues with forced-SSL URLs.
- Other minor fixes.
-
Enhancements
- BWP Minify is WordPress 3.9 compatible.
- BWP Minify should now be able to handle very late JS, CSS files that are queued/printed directly using
wp_print_scripts and wp_print_styles .
- Changed Minify URL setting to contain a relative URL (from site root) instead of an absolute URL. This should be useful when switching between staging and live site, or between mirror sites.
- Changed Minify strings' default length to
10 to avoid errors on certain servers. Users are encouraged to increase/decrease the length when needed, or enable Pretty Minify String instead.
- Disable
Minify bloginfo() setting by default. Modern themes should always use the enqueue system for any stylesheet.
-
admin-bar , jquery-core , and jquery-migrate are now ignored by default.
-
admin-bar and dashicon are now ignored by default
- Changed default cache age to 1 day instead of 2 hours.
- Users can now use
BWP_MINIFY_CACHE_DIR and BWP_MINIFY_MIN_PATH constants to override the Cache Directory and Min Path setting in admin. This can become useful when mirroring a site.
- Other minor enhancements.
-
Misc
- Added a Serbo-Croatian translation - Thanks to Borisa Djuraskovic!
- Added an Indonesian translation - Thanks to Nasrulhaq Muiz!
- Added a Russian translation - Thanks to !
Migration from 1.2.x
- Minify URL setting has been replaced with Minify Path setting and you will have to manually update this setting if you're using a non-default one. Note to Developers: the setting's key has been changed from
input_minurl to input_minpath . The hook bwp_minify_min_dir is still available but deprecated in favor of bwp_minify_min_path
- Minify Path setting and Cache Directory setting are now default to empty value, which means they're automatically detected.
Enjoy this release, and please don't forget to rate BWP Minify 5 shining stars if you like it, thanks!
Bonus: Check out these Minifying Best Practices to apply to your site today!
|