BJ Lazy Load - Version 1.0.2

Version Description

Download this release

Release Info

Developer bjornjohansen
Plugin Icon 128x128 BJ Lazy Load
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (3) hide show
  1. bj-lazy-load.php +1 -1
  2. inc/class-bjll.php +6 -5
  3. 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.1
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( __DIR__ ) . 'compat';
72
  $d = dir( $dirname );
73
- while ( $entry = $d->read() ) {
74
- if ( '.' != $entry[0] && '.php' == substr( $entry, -4) ) {
75
- include trailingslashit( $dirname ) . $entry;
 
 
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.1
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