SG Optimizer - Version 5.7.17

Version Description

Download this release

Release Info

Developer sstoqnov
Plugin Icon 128x128 SG Optimizer
Version 5.7.17
Comparing to
See all releases

Code changes from version 5.7.16 to 5.7.17

core/Combinator/Js_Combinator.php CHANGED
@@ -490,10 +490,12 @@ class Js_Combinator extends Abstract_Combinator {
490
  'uncode-app',
491
  'uncode-plugins',
492
  'uncode-init',
 
493
  'wp-api-fetch',
494
  'wp-i18n',
495
  'wp-polyfill',
496
  'wp-url',
 
497
  );
498
 
499
  /**
490
  'uncode-app',
491
  'uncode-plugins',
492
  'uncode-init',
493
+ 'lodash',
494
  'wp-api-fetch',
495
  'wp-i18n',
496
  'wp-polyfill',
497
  'wp-url',
498
+ 'wp-hooks',
499
  );
500
 
501
  /**
core/Front_End_Optimization/Front_End_Optimization.php CHANGED
@@ -55,6 +55,7 @@ class Front_End_Optimization {
55
  'wp-i18n',
56
  'wp-polyfill',
57
  'wp-url',
 
58
  );
59
 
60
  /**
55
  'wp-i18n',
56
  'wp-polyfill',
57
  'wp-url',
58
+ 'wp-hooks',
59
  );
60
 
61
  /**
core/Helper/Helper.php CHANGED
@@ -29,6 +29,7 @@ class Helper {
29
  add_action( 'plugins_loaded', array( $this, 'is_plugin_installed' ) );
30
  add_action( 'init', array( $this, 'hide_warnings_in_rest_api' ) );
31
  add_action( 'wp_head', array( $this, 'add_plugin_info_comment' ), 1, 2 );
 
32
 
33
  set_error_handler( array( $this, 'error_handler' ) );
34
 
@@ -299,4 +300,18 @@ class Helper {
299
 
300
  return $base_dir;
301
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  }
29
  add_action( 'plugins_loaded', array( $this, 'is_plugin_installed' ) );
30
  add_action( 'init', array( $this, 'hide_warnings_in_rest_api' ) );
31
  add_action( 'wp_head', array( $this, 'add_plugin_info_comment' ), 1, 2 );
32
+ add_filter( 'site_status_tests', array( $this, 'sitehealth_remove_https_status' ) );
33
 
34
  set_error_handler( array( $this, 'error_handler' ) );
35
 
300
 
301
  return $base_dir;
302
  }
303
+
304
+ /**
305
+ * Remove the https module from Site Heatlh, because our plugin provide the same functionality.
306
+ *
307
+ * @since 5.7.17
308
+ *
309
+ * @param array $tests An associative array, where the $tests is either direct or async, to declare if the test should run via Ajax calls after page load.
310
+ *
311
+ * @return array Tests with removed https_status module.
312
+ */
313
+ public function sitehealth_remove_https_status( $tests ) {
314
+ unset( $tests['async']['https_status'] );
315
+ return $tests;
316
+ }
317
  }
readme.txt CHANGED
@@ -217,6 +217,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
217
 
218
  == Changelog ==
219
 
 
 
 
220
  = Version 5.7.16 =
221
  * Improved Contact Form 7 support
222
  * Improved Amelia booking support
217
 
218
  == Changelog ==
219
 
220
+ = Version 5.7.17 =
221
+ * Improved WordPress 5.7 support
222
+
223
  = Version 5.7.16 =
224
  * Improved Contact Form 7 support
225
  * Improved Amelia booking support
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
- * Version: 5.7.16
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
- define( __NAMESPACE__ . '\VERSION', '5.7.16' );
35
  }
36
 
37
  // Define slug constant.
10
  * Plugin Name: SG Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
+ * Version: 5.7.17
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
+ define( __NAMESPACE__ . '\VERSION', '5.7.17' );
35
  }
36
 
37
  // Define slug constant.