SG Optimizer - Version 5.5.1

Version Description

Download this release

Release Info

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

Code changes from version 5.5.0 to 5.5.1

core/Combinator/Css_Combinator.php CHANGED
@@ -34,6 +34,7 @@ class Css_Combinator extends Abstract_Combinator {
34
  'siteground-optimizer-combined-css-footer',
35
  'elementor-pro', // Excluded in 5.2.2.
36
  'elementor-global', // Excluded in 5.2.5.
 
37
  'tve_style_family_tve_flt', // Excluded in 5.3.0.
38
  'siteorigin-widget-icon-font-fontawesome',
39
  'woocommerce-smallscreen',
@@ -239,7 +240,7 @@ class Css_Combinator extends Abstract_Combinator {
239
 
240
  // Remove source maps urls.
241
  $content = preg_replace(
242
- '~(\/\/|\/\*)(#|@)\s(sourceURL|sourceMappingURL)=(.*)(\*\/)?$~',
243
  '',
244
  $content
245
  );
34
  'siteground-optimizer-combined-css-footer',
35
  'elementor-pro', // Excluded in 5.2.2.
36
  'elementor-global', // Excluded in 5.2.5.
37
+ 'elementor-frontend', // Excluded in 5.2.5.
38
  'tve_style_family_tve_flt', // Excluded in 5.3.0.
39
  'siteorigin-widget-icon-font-fontawesome',
40
  'woocommerce-smallscreen',
240
 
241
  // Remove source maps urls.
242
  $content = preg_replace(
243
+ '~^(\/\/|\/\*)(#|@)\s(sourceURL|sourceMappingURL)=(.*)(\*\/)?$~',
244
  '',
245
  $content
246
  );
core/Combinator/Js_Combinator.php CHANGED
@@ -184,6 +184,7 @@ class Js_Combinator extends Abstract_Combinator {
184
  * @var array Array containing all paths that should be excluded.
185
  */
186
  private $excluded_paths = array(
 
187
  'app.getresponse.com',
188
  'googleadservices.com',
189
  'a.optmnstr.com',
@@ -731,10 +732,8 @@ class Js_Combinator extends Abstract_Combinator {
731
  $new_content = array();
732
 
733
  foreach ( $contents as $url => $content ) {
734
- if ( ! empty( $matches ) ) {
735
- }
736
  $new_content[] = preg_replace(
737
- '~(\/\/|\/\*)(#|@)\s(sourceURL|sourceMappingURL)=(.*)(\*\/)?$~',
738
  '',
739
  $content
740
  );
184
  * @var array Array containing all paths that should be excluded.
185
  */
186
  private $excluded_paths = array(
187
+ 'cdn.ampproject.org',
188
  'app.getresponse.com',
189
  'googleadservices.com',
190
  'a.optmnstr.com',
732
  $new_content = array();
733
 
734
  foreach ( $contents as $url => $content ) {
 
 
735
  $new_content[] = preg_replace(
736
+ '~^(\/\/|\/\*)(#|@)\s(sourceURL|sourceMappingURL)=(.*)(\*\/)?$~',
737
  '',
738
  $content
739
  );
core/Front_End_Optimization/Front_End_Optimization.php CHANGED
@@ -339,7 +339,18 @@ class Front_End_Optimization {
339
  */
340
  private function check_for_builders() {
341
 
342
- $builder_paramas = apply_filters( 'sgo_pb_params', array( 'fl_builder', 'vcv-action', 'et_fb', 'ct_builder', 'tve' ) );
 
 
 
 
 
 
 
 
 
 
 
343
 
344
  foreach ( $builder_paramas as $param ) {
345
  if ( isset( $_GET[ $param ] ) ) {
339
  */
340
  private function check_for_builders() {
341
 
342
+ $builder_paramas = apply_filters(
343
+ 'sgo_pb_params',
344
+ array(
345
+ 'fl_builder',
346
+ 'vcv-action',
347
+ 'et_fb',
348
+ 'ct_builder',
349
+ 'tve',
350
+ 'preview',
351
+ 'elementor-preview',
352
+ )
353
+ );
354
 
355
  foreach ( $builder_paramas as $param ) {
356
  if ( isset( $_GET[ $param ] ) ) {
core/Minifier/Minifier.php CHANGED
@@ -69,6 +69,7 @@ class Minifier {
69
  'pdf-catalog',
70
  'tve',
71
  'elementor-preview',
 
72
  );
73
 
74
  /**
69
  'pdf-catalog',
70
  'tve',
71
  'elementor-preview',
72
+ 'preview',
73
  );
74
 
75
  /**
readme.txt CHANGED
@@ -171,6 +171,11 @@ Our plugin uses a cookie in order to function properly. It does not store person
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
174
  = Version 5.5.0 =
175
  * New - Combine JavaScript Files
176
  * New - WebP quality control plus lossless option
171
 
172
  == Changelog ==
173
 
174
+ = Version 5.5.1 =
175
+ * Better Elementor support
176
+ * Better Divi support
177
+ * Better sourcemapping removal
178
+
179
  = Version 5.5.0 =
180
  * New - Combine JavaScript Files
181
  * New - WebP quality control plus lossless option
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.5.0
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.5.0' );
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.5.1
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.5.1' );
35
  }
36
 
37
  // Define slug constant.