Autoptimize - Version 2.9.5.1

Version Description

  • fix for CSS cache growing too fast when inline CSS with variable selectors from WordPress 5.9 comment blocks is aggregated.
Download this release

Release Info

Developer futtta
Plugin Icon 128x128 Autoptimize
Version 2.9.5.1
Comparing to
See all releases

Code changes from version 2.9.5 to 2.9.5.1

Files changed (3) hide show
  1. autoptimize.php +2 -2
  2. classes/autoptimizeStyles.php +3 -0
  3. readme.txt +7 -5
autoptimize.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Autoptimize
4
  * Plugin URI: https://autoptimize.com/
5
  * Description: Makes your site faster by optimizing CSS, JS, Images, Google fonts and more.
6
- * Version: 2.9.5
7
  * Author: Frank Goossens (futtta)
8
  * Author URI: https://autoptimize.com/
9
  * Text Domain: autoptimize
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  exit;
22
  }
23
 
24
- define( 'AUTOPTIMIZE_PLUGIN_VERSION', '2.9.5' );
25
 
26
  // plugin_dir_path() returns the trailing slash!
27
  define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
3
  * Plugin Name: Autoptimize
4
  * Plugin URI: https://autoptimize.com/
5
  * Description: Makes your site faster by optimizing CSS, JS, Images, Google fonts and more.
6
+ * Version: 2.9.5.1
7
  * Author: Frank Goossens (futtta)
8
  * Author URI: https://autoptimize.com/
9
  * Text Domain: autoptimize
21
  exit;
22
  }
23
 
24
+ define( 'AUTOPTIMIZE_PLUGIN_VERSION', '2.9.5.1' );
25
 
26
  // plugin_dir_path() returns the trailing slash!
27
  define( 'AUTOPTIMIZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
classes/autoptimizeStyles.php CHANGED
@@ -215,6 +215,9 @@ class autoptimizeStyles extends autoptimizeBase
215
  // forcefully exclude CSS with data-noptimize attrib.
216
  $this->dontmove[] = 'data-noptimize';
217
 
 
 
 
218
  // Should we defer css?
219
  // value: true / false.
220
  $this->defer = $options['defer'];
215
  // forcefully exclude CSS with data-noptimize attrib.
216
  $this->dontmove[] = 'data-noptimize';
217
 
218
+ // forcefully exclude inline CSS with ".wp-container-" which due to the random-ish nature busts AO's cache continuously.
219
+ $this->dontmove[] = '.wp-container-';
220
+
221
  // Should we defer css?
222
  // value: true / false.
223
  $this->defer = $options['defer'];
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
5
  Requires at least: 4.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.9.5
9
 
10
  Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
11
 
@@ -14,6 +14,9 @@ Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-loa
14
  Autoptimize makes optimizing your site really easy. It can aggregate, minify and cache scripts and styles, injects CSS in the page head by default but can also inline critical CSS and defer the aggregated full CSS, moves and defers scripts to the footer and minifies HTML. You can optimize and lazy-load images (with support for WebP and AVIF formats), optimize Google Fonts, async non-aggregated JavaScript, remove WordPress core emoji cruft and more. As such it can improve your site's performance even when already on HTTP/2! There is extensive API available to enable you to tailor Autoptimize to each and every site's specific needs.
15
  If you consider performance important, you really should use one of the many caching plugins to do page caching. Some good candidates to complement Autoptimize that way are e.g. [Speed Booster pack](https://wordpress.org/plugins/speed-booster-pack/), [KeyCDN's Cache Enabler](https://wordpress.org/plugins/cache-enabler), [WP Super Cache](http://wordpress.org/plugins/wp-super-cache/) or if you use Cloudflare [WP Cloudflare Super Page Cache](https://wordpress.org/plugins/wp-cloudflare-page-cache/).
16
 
 
 
 
17
  (Speed-surfing image under creative commons [by LL Twistiti](https://www.flickr.com/photos/twistiti/818552808/))
18
 
19
  == Installation ==
@@ -26,10 +29,6 @@ Just install from your WordPress "Plugins > Add New" screen and all will be well
26
 
27
  == Frequently Asked Questions ==
28
 
29
- = Do you offer or recommend a course on how to speed up WordPress/ use Autoptimize? =
30
-
31
- There are many great resources online, both free and premium, but [the "Autoptimize Masterclass" by Load Labz](https://misc.optimizingmatters.com/partners/?from=faq&partner=loadlabz) stands out for the systematic and detailed approach in the video-based course. Have a look at the free sample class(es) and when interested make sure to use the `EarlyBird` coupon to get a discount!
32
-
33
  = What does the plugin do to help speed up my site? =
34
 
35
  It concatenates all scripts and styles, minifies and compresses them, adds expires headers, caches them, and moves styles to the page head, and scripts (optionally) to the footer. It also minifies the HTML code itself, making your page really lightweight.
@@ -325,6 +324,9 @@ Just [fork Autoptimize on Github](https://github.com/futtta/autoptimize) and cod
325
 
326
  == Changelog ==
327
 
 
 
 
328
  = 2.9.5 =
329
  * Better fix for PHP notice in autoptimizeImages.php.
330
  * Further improvements to the exit survey.
5
  Requires at least: 4.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.6
8
+ Stable tag: 2.9.5.1
9
 
10
  Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
11
 
14
  Autoptimize makes optimizing your site really easy. It can aggregate, minify and cache scripts and styles, injects CSS in the page head by default but can also inline critical CSS and defer the aggregated full CSS, moves and defers scripts to the footer and minifies HTML. You can optimize and lazy-load images (with support for WebP and AVIF formats), optimize Google Fonts, async non-aggregated JavaScript, remove WordPress core emoji cruft and more. As such it can improve your site's performance even when already on HTTP/2! There is extensive API available to enable you to tailor Autoptimize to each and every site's specific needs.
15
  If you consider performance important, you really should use one of the many caching plugins to do page caching. Some good candidates to complement Autoptimize that way are e.g. [Speed Booster pack](https://wordpress.org/plugins/speed-booster-pack/), [KeyCDN's Cache Enabler](https://wordpress.org/plugins/cache-enabler), [WP Super Cache](http://wordpress.org/plugins/wp-super-cache/) or if you use Cloudflare [WP Cloudflare Super Page Cache](https://wordpress.org/plugins/wp-cloudflare-page-cache/).
16
 
17
+ > <strong>Premium Support</strong><br>
18
+ > We provide great [Autoptimize Pro Support and Web Performance Optimization services](https://misc.optimizingmatters.com/partners/?from=pluginpage&partner=autoptimizepro), check out our offering on [https://accelera.autoptimize.com/](https://misc.optimizingmatters.com/partners/?from=pluginpage&partner=autoptimizepro)!
19
+
20
  (Speed-surfing image under creative commons [by LL Twistiti](https://www.flickr.com/photos/twistiti/818552808/))
21
 
22
  == Installation ==
29
 
30
  == Frequently Asked Questions ==
31
 
 
 
 
 
32
  = What does the plugin do to help speed up my site? =
33
 
34
  It concatenates all scripts and styles, minifies and compresses them, adds expires headers, caches them, and moves styles to the page head, and scripts (optionally) to the footer. It also minifies the HTML code itself, making your page really lightweight.
324
 
325
  == Changelog ==
326
 
327
+ = 2.9.5.1 =
328
+ * fix for CSS cache growing too fast when inline CSS with variable selectors from WordPress 5.9 comment blocks is aggregated.
329
+
330
  = 2.9.5 =
331
  * Better fix for PHP notice in autoptimizeImages.php.
332
  * Further improvements to the exit survey.