Version Description
- 08 jan. 2015
- Bug Fix: Don't apply LazyLoad on captcha from Really Simple CAPTCHA to prevent conflicts.
Download this release
Release Info
| Developer | wp_media |
| Plugin | |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.2 to 1.0.3
- readme.txt +6 -2
- rocket-lazy-load.php +3 -3
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: juliobox, geekpress, wp_media
|
|
| 3 |
Tags: lazyload, lazy load, images, thumbnail, thumbnails, smiley, smilies, avatar, gravatar
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 4.1
|
| 6 |
-
Stable tag: 1.0.
|
| 7 |
|
| 8 |
The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 9 |
|
|
@@ -44,6 +44,10 @@ Simply add a 'data-no-lazy="1"' property in you IMG tag.
|
|
| 44 |
|
| 45 |
== Changelog ==
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
= 1.0.2 =
|
| 48 |
* 28 dec. 2014
|
| 49 |
* Improvement: Add « rocket_lazyload_html » filter to manage the output that will be printed.
|
|
@@ -54,7 +58,7 @@ Simply add a 'data-no-lazy="1"' property in you IMG tag.
|
|
| 54 |
|
| 55 |
= 1.0.1 =
|
| 56 |
* 16 jul. 2014
|
| 57 |
-
* Fix
|
| 58 |
* Security fix: The preg_replace() could lead to a XSS vuln, thanks to Alexander Concha
|
| 59 |
* Code compliance
|
| 60 |
|
| 3 |
Tags: lazyload, lazy load, images, thumbnail, thumbnails, smiley, smilies, avatar, gravatar
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 4.1
|
| 6 |
+
Stable tag: 1.0.3
|
| 7 |
|
| 8 |
The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 9 |
|
| 44 |
|
| 45 |
== Changelog ==
|
| 46 |
|
| 47 |
+
= 1.0.3 =
|
| 48 |
+
* 08 jan. 2015
|
| 49 |
+
* Bug Fix: Don't apply LazyLoad on captcha from Really Simple CAPTCHA to prevent conflicts.
|
| 50 |
+
|
| 51 |
= 1.0.2 =
|
| 52 |
* 28 dec. 2014
|
| 53 |
* Improvement: Add « rocket_lazyload_html » filter to manage the output that will be printed.
|
| 58 |
|
| 59 |
= 1.0.1 =
|
| 60 |
* 16 jul. 2014
|
| 61 |
+
* Bug Fix: when a IMG tag or content (widget or post) contains the string "data-no-lazy", all IMG tags were ignored instead of one.
|
| 62 |
* Security fix: The preg_replace() could lead to a XSS vuln, thanks to Alexander Concha
|
| 63 |
* Code compliance
|
| 64 |
|
rocket-lazy-load.php
CHANGED
|
@@ -5,11 +5,11 @@ defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
|
|
| 5 |
Plugin Name: Rocket Lazy Load
|
| 6 |
Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
| 7 |
Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 8 |
-
Version: 1.0.
|
| 9 |
Author: WP Media
|
| 10 |
Author URI: http://wp-rocket.me
|
| 11 |
|
| 12 |
-
Copyright
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License as published by
|
|
@@ -75,7 +75,7 @@ function rocket_lazyload_images( $html ) {
|
|
| 75 |
* @since 1.0.1
|
| 76 |
*/
|
| 77 |
function __rocket_lazyload_replace_callback( $matches ) {
|
| 78 |
-
if ( strpos( $matches[1] . $matches[3], 'data-no-lazy=' ) === false && strpos( $matches[1] . $matches[3], 'data-lazy-original=' ) === false ) {
|
| 79 |
$html = sprintf( '<img%1$s src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-lazy-original=%2$s%3$s><noscript><img%1$s src=%2$s%3$s></noscript>',
|
| 80 |
$matches[1], $matches[2], $matches[3] );
|
| 81 |
|
| 5 |
Plugin Name: Rocket Lazy Load
|
| 6 |
Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
|
| 7 |
Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
|
| 8 |
+
Version: 1.0.3
|
| 9 |
Author: WP Media
|
| 10 |
Author URI: http://wp-rocket.me
|
| 11 |
|
| 12 |
+
Copyright 2015 WP Media
|
| 13 |
|
| 14 |
This program is free software; you can redistribute it and/or modify
|
| 15 |
it under the terms of the GNU General Public License as published by
|
| 75 |
* @since 1.0.1
|
| 76 |
*/
|
| 77 |
function __rocket_lazyload_replace_callback( $matches ) {
|
| 78 |
+
if ( strpos( $matches[1] . $matches[3], 'data-no-lazy=' ) === false && strpos( $matches[1] . $matches[3], 'data-lazy-original=' ) === false && strpos( $matches[2], '/wpcf7_captcha/' ) === false ) {
|
| 79 |
$html = sprintf( '<img%1$s src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-lazy-original=%2$s%3$s><noscript><img%1$s src=%2$s%3$s></noscript>',
|
| 80 |
$matches[1], $matches[2], $matches[3] );
|
| 81 |
|
