Version Description
- Bugfix: Correctly ignore inline scripts with line breaks inside
Download this release
Release Info
| Developer | wp_media |
| Plugin | |
| Version | 2.0.3.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.3.1 to 2.0.3.2
- readme.txt +4 -1
- rocket-lazy-load.php +2 -2
- src/Subscriber/LazyloadSubscriber.php +1 -1
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: lazyload, lazy load, images, iframes, thumbnail, thumbnails, smiley, smili
|
|
| 4 |
Requires at least: 4.7
|
| 5 |
Tested up to: 5.0.2
|
| 6 |
Requires PHP: 5.4
|
| 7 |
-
Stable tag: 2.0.3.
|
| 8 |
|
| 9 |
Lazy Load your images and iframes, replace Youtube videos by a preview thumbnail.
|
| 10 |
|
|
@@ -78,6 +78,9 @@ The element you want to apply lazyload on must have this specific markup:
|
|
| 78 |
The element must have the class `rocket-lazyload-bg`, and a `data-bg` attribute, which value is the CSS url for the image.
|
| 79 |
|
| 80 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 81 |
= 2.0.3.1 =
|
| 82 |
* Bugfix: Correct an issue preventing lazyload from working
|
| 83 |
|
| 4 |
Requires at least: 4.7
|
| 5 |
Tested up to: 5.0.2
|
| 6 |
Requires PHP: 5.4
|
| 7 |
+
Stable tag: 2.0.3.2
|
| 8 |
|
| 9 |
Lazy Load your images and iframes, replace Youtube videos by a preview thumbnail.
|
| 10 |
|
| 78 |
The element must have the class `rocket-lazyload-bg`, and a `data-bg` attribute, which value is the CSS url for the image.
|
| 79 |
|
| 80 |
== Changelog ==
|
| 81 |
+
= 2.0.3.2 =
|
| 82 |
+
* Bugfix: Correctly ignore inline scripts with line breaks inside
|
| 83 |
+
|
| 84 |
= 2.0.3.1 =
|
| 85 |
* Bugfix: Correct an issue preventing lazyload from working
|
| 86 |
|
rocket-lazy-load.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Lazy Load by WP Rocket
|
| 4 |
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
| 5 |
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 6 |
-
* Version: 2.0.3.
|
| 7 |
* Author: WP Media
|
| 8 |
* Author URI: https://wp-rocket.me
|
| 9 |
* Text Domain: rocket-lazy-load
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
|
| 28 |
defined('ABSPATH') || die('Cheatin\' uh?');
|
| 29 |
|
| 30 |
-
define('ROCKET_LL_VERSION', '2.0.3.
|
| 31 |
define('ROCKET_LL_WP_VERSION', '4.7');
|
| 32 |
define('ROCKET_LL_PHP_VERSION', '5.4');
|
| 33 |
define('ROCKET_LL_BASENAME', plugin_basename(__FILE__));
|
| 3 |
* Plugin Name: Lazy Load by WP Rocket
|
| 4 |
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
| 5 |
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 6 |
+
* Version: 2.0.3.2
|
| 7 |
* Author: WP Media
|
| 8 |
* Author URI: https://wp-rocket.me
|
| 9 |
* Text Domain: rocket-lazy-load
|
| 27 |
|
| 28 |
defined('ABSPATH') || die('Cheatin\' uh?');
|
| 29 |
|
| 30 |
+
define('ROCKET_LL_VERSION', '2.0.3.2');
|
| 31 |
define('ROCKET_LL_WP_VERSION', '4.7');
|
| 32 |
define('ROCKET_LL_PHP_VERSION', '5.4');
|
| 33 |
define('ROCKET_LL_BASENAME', plugin_basename(__FILE__));
|
src/Subscriber/LazyloadSubscriber.php
CHANGED
|
@@ -371,6 +371,6 @@ class LazyloadSubscriber implements SubscriberInterface
|
|
| 371 |
*/
|
| 372 |
private function ignoreScripts($html)
|
| 373 |
{
|
| 374 |
-
return preg_replace('/<script\b(?:[^>]*)>(?:.+)?<\/script>/
|
| 375 |
}
|
| 376 |
}
|
| 371 |
*/
|
| 372 |
private function ignoreScripts($html)
|
| 373 |
{
|
| 374 |
+
return preg_replace('/<script\b(?:[^>]*)>(?:.+)?<\/script>/Umsi', '', $html);
|
| 375 |
}
|
| 376 |
}
|
