Breeze – WordPress Cache Plugin - Version 2.0.13

Version Description

Update Breeze through WordPress Admin > Dashboard >Updates. The settings will remain intact after the update.

Download this release

Release Info

Developer adeelkhan
Plugin Icon 128x128 Breeze – WordPress Cache Plugin
Version 2.0.13
Comparing to
See all releases

Code changes from version 2.0.12 to 2.0.13

breeze.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
- * Version: 2.0.12
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
@@ -37,7 +37,7 @@ if ( ! defined( 'BREEZE_PLUGIN_DIR' ) ) {
37
  define( 'BREEZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
38
  }
39
  if ( ! defined( 'BREEZE_VERSION' ) ) {
40
- define( 'BREEZE_VERSION', '2.0.12' );
41
  }
42
  if ( ! defined( 'BREEZE_SITEURL' ) ) {
43
  define( 'BREEZE_SITEURL', get_site_url() );
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
+ * Version: 2.0.13
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
37
  define( 'BREEZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
38
  }
39
  if ( ! defined( 'BREEZE_VERSION' ) ) {
40
+ define( 'BREEZE_VERSION', '2.0.13' );
41
  }
42
  if ( ! defined( 'BREEZE_SITEURL' ) ) {
43
  define( 'BREEZE_SITEURL', get_site_url() );
inc/cache/execute-cache.php CHANGED
@@ -275,6 +275,8 @@ function breeze_cache( $buffer, $flags ) {
275
  $home_url = $GLOBALS['breeze_config']['homepage'];
276
  $home_url = ltrim( $home_url, 'https:' );
277
 
 
 
278
  $html_dom = new \DOMDocument();
279
  $html_dom->preserveWhiteSpace = false;// phpcs:ignore
280
  $html_dom->formatOutput = false;// phpcs:ignore
@@ -327,7 +329,8 @@ function breeze_cache( $buffer, $flags ) {
327
  }
328
  }
329
  }
330
- $buffer = $html_dom->saveHTML( $html_dom->documentElement );
 
331
  // ------------------------------------------------------------------------------------------
332
 
333
  }
275
  $home_url = $GLOBALS['breeze_config']['homepage'];
276
  $home_url = ltrim( $home_url, 'https:' );
277
 
278
+ $buffer = mb_convert_encoding( $buffer, 'HTML-ENTITIES', 'UTF-8' );
279
+
280
  $html_dom = new \DOMDocument();
281
  $html_dom->preserveWhiteSpace = false;// phpcs:ignore
282
  $html_dom->formatOutput = false;// phpcs:ignore
329
  }
330
  }
331
  }
332
+ //$buffer = $html_dom->saveHTML( $html_dom->documentElement );
333
+ $buffer = $html_dom->saveHTML();
334
  // ------------------------------------------------------------------------------------------
335
 
336
  }
inc/class-breeze-lazy-load.php CHANGED
@@ -100,6 +100,8 @@ class Breeze_Lazy_Load {
100
  // The native lazy load is not yet supported by all browsers. ( As of February 2021, 73% of browsers support lazy loading. )
101
  $use_native = apply_filters( 'breeze_use_native_lazy_load', $this->lazy_load_native );
102
 
 
 
103
  $html_dom = new DOMDocument();
104
  $html_dom->preserveWhiteSpace = false;// phpcs:ignore
105
  $html_dom->formatOutput = false;// phpcs:ignore
@@ -258,7 +260,9 @@ class Breeze_Lazy_Load {
258
  }
259
  }
260
 
261
- return $html_dom->saveHTML( $html_dom->documentElement );
 
 
262
  }
263
 
264
  /**
100
  // The native lazy load is not yet supported by all browsers. ( As of February 2021, 73% of browsers support lazy loading. )
101
  $use_native = apply_filters( 'breeze_use_native_lazy_load', $this->lazy_load_native );
102
 
103
+ $content = mb_convert_encoding( $content, 'HTML-ENTITIES', 'UTF-8' );
104
+
105
  $html_dom = new DOMDocument();
106
  $html_dom->preserveWhiteSpace = false;// phpcs:ignore
107
  $html_dom->formatOutput = false;// phpcs:ignore
260
  }
261
  }
262
 
263
+ //return $html_dom->saveHTML( $html_dom->documentElement );
264
+ return $html_dom->saveHTML();
265
+
266
  }
267
 
268
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Cloudways
3
  Tags: cache,caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 6.0
5
  Tested up to: 6.1
6
- Stable tag: 2.0.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -144,6 +144,10 @@ Using Gzip, Breeze compresses the request files, further reducing the size of th
144
 
145
  == Changelog ==
146
 
 
 
 
 
147
  = 2.0.12=
148
 
149
  * Fix: Synchronized the reset cache option of the Avada theme with Breeze.
3
  Tags: cache,caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 6.0
5
  Tested up to: 6.1
6
+ Stable tag: 2.0.13
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
144
 
145
  == Changelog ==
146
 
147
+ = 2.0.13=
148
+
149
+ * Fix: DOMDocument class was removed while enabling the options Lazy Load Images and Cross-origin Safe Links.
150
+
151
  = 2.0.12=
152
 
153
  * Fix: Synchronized the reset cache option of the Avada theme with Breeze.