Autoptimize - Version 2.3.1

Version Description

  • fix for issue with update-code in some circumstances, thanks to Rajendra Zore to report & help fix!
Download this release

Release Info

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

Code changes from version 2.3.0 to 2.3.1

autoptimize.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Autoptimize
4
  Plugin URI: https://autoptimize.com/
5
  Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
6
- Version: 2.3.0
7
  Author: Frank Goossens (futtta)
8
  Author URI: https://autoptimize.com/
9
  Domain Path: localization/
3
  Plugin Name: Autoptimize
4
  Plugin URI: https://autoptimize.com/
5
  Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
6
+ Version: 2.3.1
7
  Author: Frank Goossens (futtta)
8
  Author URI: https://autoptimize.com/
9
  Domain Path: localization/
classlesses/autoptimizeUpdateCode.php CHANGED
@@ -72,7 +72,9 @@ switch($autoptimize_major_version) {
72
  * 2.3 has no "remove google fonts" in main screen, moved to "extra"
73
  */
74
  if ( !is_multisite() ) {
75
- if ( (get_option('autoptimize_css_nogooglefont','') == 1) && ( empty(get_option('autoptimize_extra_settings','')) ) ) {
 
 
76
  $_aoextra_removegfonts = array("autoptimize_extra_checkbox_field_1"=>"0","autoptimize_extra_checkbox_field_0"=>"0","autoptimize_extra_radio_field_4"=>"1","autoptimize_extra_text_field_2"=>"","autoptimize_extra_text_field_3"=>"");
77
  update_option( 'autoptimize_extra_settings', $_aoextra_removegfonts );
78
  }
@@ -83,7 +85,9 @@ switch($autoptimize_major_version) {
83
  $original_blog_id = get_current_blog_id();
84
  foreach ( $blog_ids as $blog_id ) {
85
  switch_to_blog( $blog_id );
86
- if ( (get_option('autoptimize_css_nogooglefont','') == 1) && ( empty(get_option('autoptimize_extra_settings','')) ) ) {
 
 
87
  $_aoextra_removegfonts = array("autoptimize_extra_checkbox_field_1"=>"0","autoptimize_extra_checkbox_field_0"=>"0","autoptimize_extra_radio_field_4"=>"1","autoptimize_extra_text_field_2"=>"","autoptimize_extra_text_field_3"=>"");
88
  update_option( 'autoptimize_extra_settings', $_aoextra_removegfonts );
89
  }
72
  * 2.3 has no "remove google fonts" in main screen, moved to "extra"
73
  */
74
  if ( !is_multisite() ) {
75
+ $_nogooglefont = get_option('autoptimize_css_nogooglefont','');
76
+ $_ao_extrasetting = get_option('autoptimize_extra_settings','');
77
+ if ( ($_nogooglefont == 1) && ( empty($_ao_extrasetting) ) ) {
78
  $_aoextra_removegfonts = array("autoptimize_extra_checkbox_field_1"=>"0","autoptimize_extra_checkbox_field_0"=>"0","autoptimize_extra_radio_field_4"=>"1","autoptimize_extra_text_field_2"=>"","autoptimize_extra_text_field_3"=>"");
79
  update_option( 'autoptimize_extra_settings', $_aoextra_removegfonts );
80
  }
85
  $original_blog_id = get_current_blog_id();
86
  foreach ( $blog_ids as $blog_id ) {
87
  switch_to_blog( $blog_id );
88
+ $_nogooglefont = get_option('autoptimize_css_nogooglefont','');
89
+ $_ao_extrasetting = get_option('autoptimize_extra_settings','');
90
+ if ( ($_nogooglefont == 1) && ( empty($_ao_extrasetting) ) ) {
91
  $_aoextra_removegfonts = array("autoptimize_extra_checkbox_field_1"=>"0","autoptimize_extra_checkbox_field_0"=>"0","autoptimize_extra_radio_field_4"=>"1","autoptimize_extra_text_field_2"=>"","autoptimize_extra_text_field_3"=>"");
92
  update_option( 'autoptimize_extra_settings', $_aoextra_removegfonts );
93
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: css, javascript, optimize, minify, performance
4
  Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
- Stable tag: 2.3.0
8
 
9
  Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS, CSS and HTML.
10
 
@@ -248,6 +248,9 @@ Just [fork Autoptimize on Github](https://github.com/futtta/autoptimize) and cod
248
 
249
  == Changelog ==
250
 
 
 
 
251
  = 2.3.0 =
252
  * new: optimize Google fonts with “combine & link” and “combine and load async” (with webload.js), intelligently preconnecting to Google’s domains to limit performance impact even further
253
  * new: Async JS, can be applied to local or 3rd party JS (if local it will be auto-excluded from autoptimization)
4
  Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.3.1
8
 
9
  Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS, CSS and HTML.
10
 
248
 
249
  == Changelog ==
250
 
251
+ = 2.3.1 =
252
+ * fix for issue with update-code in some circumstances, thanks to [Rajendra Zore](https://rajendrazore.com/) to report & help fix!
253
+
254
  = 2.3.0 =
255
  * new: optimize Google fonts with “combine & link” and “combine and load async” (with webload.js), intelligently preconnecting to Google’s domains to limit performance impact even further
256
  * new: Async JS, can be applied to local or 3rd party JS (if local it will be auto-excluded from autoptimization)