Este plugin no ha sido probado con ninguna las 3 últimas versiones principales de WordPress. Puede que ya no se mantenga o no tenga soporte, y puede que tenga problemas de compatibilidad cuando se utiliza con versiones más recientes de WordPress.

WP Minify Fix

Descripción

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.

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.

License

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.

Capturas de pantalla

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

Instalación

  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.

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.

Reseñas

29 de Enero de 2017
It will not let me turn off Enable HTML Minification option Enable HTML Minification. Always return to check, and than broke my website.
3 de Septiembre de 2016
It’s working fine on the free theme “Parabola” without breaking any front-end structure.
3 de Septiembre de 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.
Leer los 40 comentarios

Colaboradores & Desarrolladores

“WP Minify Fix” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Traduce “WP Minify Fix” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

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
coded by Steve Clay and Ryan Grove
to perform all JS & CSS Minifying.