Page Optimize - Version 0.5.1

Version Description

  • Bail when editing pages in Brizy Editor (it errors when JavaScript load mode is async).
Download this release

Release Info

Developer aidvu
Plugin Icon wp plugin Page Optimize
Version 0.5.1
Comparing to
See all releases

Code changes from version 0.5.0 to 0.5.1

Files changed (2) hide show
  1. page-optimize.php +6 -1
  2. readme.txt +5 -2
page-optimize.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Page Optimize
4
  Plugin URI: https://wordpress.org/plugins/page-optimize/
5
  Description: Optimizes JS and CSS for faster page load and render in the browser.
6
  Author: Automattic
7
- Version: 0.5.0
8
  Author URI: http://automattic.com/
9
  */
10
 
@@ -277,6 +277,11 @@ function page_optimize_bail() {
277
  return true;
278
  }
279
 
 
 
 
 
 
280
  return false;
281
  }
282
 
4
  Plugin URI: https://wordpress.org/plugins/page-optimize/
5
  Description: Optimizes JS and CSS for faster page load and render in the browser.
6
  Author: Automattic
7
+ Version: 0.5.1
8
  Author URI: http://automattic.com/
9
  */
10
 
277
  return true;
278
  }
279
 
280
+ // Bail if we're editing pages in Brizy Editor
281
+ if ( class_exists( 'Brizy_Editor' ) && method_exists( 'Brizy_Editor', 'prefix' ) && ( isset( $_GET[ Brizy_Editor::prefix( '-edit-iframe' ) ] ) || isset( $_GET[ Brizy_Editor::prefix( '-edit' ) ] ) ) ) {
282
+ return true;
283
+ }
284
+
285
  return false;
286
  }
287
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: aidvu, bpayton
3
  Tags: performance
4
  Requires at least: 5.3
5
- Tested up to: 5.4
6
  Requires PHP: 7.0
7
- Stable tag: 0.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -49,6 +49,9 @@ Supported query params:
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 0.5.0 =
53
  * Apply the `script_loader_tag` filter for scripts that are concatenate-able but have no neighbors to concatenate with. This fixes a case where the TwentyTwenty theme wanted to apply a `defer` attribute to its script but was never given the opportunity.
54
 
2
  Contributors: aidvu, bpayton
3
  Tags: performance
4
  Requires at least: 5.3
5
+ Tested up to: 5.5.1
6
  Requires PHP: 7.0
7
+ Stable tag: 0.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
49
 
50
  == Changelog ==
51
 
52
+ = 0.5.1 =
53
+ * Bail when editing pages in Brizy Editor (it errors when JavaScript load mode is `async`).
54
+
55
  = 0.5.0 =
56
  * Apply the `script_loader_tag` filter for scripts that are concatenate-able but have no neighbors to concatenate with. This fixes a case where the TwentyTwenty theme wanted to apply a `defer` attribute to its script but was never given the opportunity.
57