Version Description
Download this release
Release Info
Developer | bjornjohansen |
Plugin | BJ Lazy Load |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- bj-lazy-load.php +1 -1
- inc/class-bjll.php +6 -5
- readme.txt +4 -1
bj-lazy-load.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: https://wordpress.org/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
-
Version: 1.0.
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
Text Domain: bj-lazy-load
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: https://wordpress.org/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
+
Version: 1.0.2
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
Text Domain: bj-lazy-load
|
inc/class-bjll.php
CHANGED
@@ -68,14 +68,15 @@ class BJLL {
|
|
68 |
*/
|
69 |
protected function _bjll_compat() {
|
70 |
|
71 |
-
$dirname = trailingslashit(
|
72 |
$d = dir( $dirname );
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
76 |
}
|
77 |
}
|
78 |
-
|
79 |
}
|
80 |
|
81 |
/**
|
68 |
*/
|
69 |
protected function _bjll_compat() {
|
70 |
|
71 |
+
$dirname = trailingslashit( dirname( __FILE__ ) ) . 'compat';
|
72 |
$d = dir( $dirname );
|
73 |
+
if ( $d ) {
|
74 |
+
while ( $entry = $d->read() ) {
|
75 |
+
if ( '.' != $entry[0] && '.php' == substr( $entry, -4) ) {
|
76 |
+
include trailingslashit( $dirname ) . $entry;
|
77 |
+
}
|
78 |
}
|
79 |
}
|
|
|
80 |
}
|
81 |
|
82 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: images, iframes, lazy loading, javascript, optimize, performance, bandwidt
|
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.3
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
Lazy loading makes your site load faster and saves bandwidth. Uses no external JS libraries and degrades gracefully for non-js users. Works with both images and iframes (like embedded YouTube videos).
|
11 |
|
@@ -59,6 +59,9 @@ Check your HTML source or see the magic at work in Web Inspector, FireBug or sim
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
62 |
= Version 1.0.1 =
|
63 |
* Fixes issue with missing placeholder
|
64 |
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.3
|
8 |
+
Stable tag: 1.0.2
|
9 |
|
10 |
Lazy loading makes your site load faster and saves bandwidth. Uses no external JS libraries and degrades gracefully for non-js users. Works with both images and iframes (like embedded YouTube videos).
|
11 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= Version 1.0.2 =
|
63 |
+
* PHP 5.2 compatibility again
|
64 |
+
|
65 |
= Version 1.0.1 =
|
66 |
* Fixes issue with missing placeholder
|
67 |
|