a3 Lazy Load - Version 1.8.1

Version Description

Maintenance Update. 1 bug fix causing afatal error from version 1.8.0 release yesterday

Download this release

Release Info

Developer a3rev
Plugin Icon 128x128 a3 Lazy Load
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

a3-lazy-load.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
- Version: 1.8.0
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
@@ -17,7 +17,7 @@ License: GPLv2 or later
17
  */
18
  ?>
19
  <?php
20
- define('A3_LAZY_VERSION', '1.8.0');
21
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
22
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
23
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
+ Version: 1.8.1
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
17
  */
18
  ?>
19
  <?php
20
+ define('A3_LAZY_VERSION', '1.8.1');
21
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
22
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
23
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
admin/a3-lazy-load-admin.php CHANGED
@@ -2,7 +2,7 @@
2
  update_option('a3rev_lazy_load_plugin', 'a3_lazy_load' );
3
 
4
  function a3_lazy_load_activated(){
5
- update_option('a3_lazy_load_version', '1.8.0');
6
 
7
  // Set Settings Default from Admin Init
8
  global $a3_lazy_load_admin_init;
@@ -65,6 +65,6 @@ function a3_lazy_load_upgrade_plugin() {
65
  update_option('a3_lazy_load_style_version', time() );
66
  }
67
 
68
- update_option('a3_lazy_load_version', '1.8.0');
69
  }
70
  ?>
2
  update_option('a3rev_lazy_load_plugin', 'a3_lazy_load' );
3
 
4
  function a3_lazy_load_activated(){
5
+ update_option('a3_lazy_load_version', '1.8.1');
6
 
7
  // Set Settings Default from Admin Init
8
  global $a3_lazy_load_admin_init;
65
  update_option('a3_lazy_load_style_version', time() );
66
  }
67
 
68
+ update_option('a3_lazy_load_version', '1.8.1');
69
  }
70
  ?>
classes/class-a3-lazy-load.php CHANGED
@@ -276,12 +276,12 @@ class A3_Lazy_Load
276
  static function get_attachment_image_attributes( $attr ) {
277
  $A3_Lazy_Load = A3_Lazy_Load::_instance();
278
 
279
- if ( is_array( $this->_skip_images_classes ) ) {
280
- $skip_images_preg_quoted = array_map( 'preg_quote', $this->_skip_images_classes );
281
  $skip_images_regex = sprintf( '/class=".*(%s).*"/s', implode( '|', $skip_images_preg_quoted ) );
282
  }
283
 
284
- if ( ! ( is_array( $this->_skip_images_classes ) && preg_match( $skip_images_regex, 'class="'.$attr['class'].'"' ) ) && ! preg_match( "/src=.*lazy_placeholder.gif['\"]/s", 'src="'.$attr['src'].'"' ) ) {
285
 
286
  $attr['data-src'] = $attr['src'];
287
  $attr['src'] = $A3_Lazy_Load->_placeholder_url;
276
  static function get_attachment_image_attributes( $attr ) {
277
  $A3_Lazy_Load = A3_Lazy_Load::_instance();
278
 
279
+ if ( is_array( $A3_Lazy_Load->_skip_images_classes ) ) {
280
+ $skip_images_preg_quoted = array_map( 'preg_quote', $A3_Lazy_Load->_skip_images_classes );
281
  $skip_images_regex = sprintf( '/class=".*(%s).*"/s', implode( '|', $skip_images_preg_quoted ) );
282
  }
283
 
284
+ if ( ! ( is_array( $A3_Lazy_Load->_skip_images_classes ) && preg_match( $skip_images_regex, 'class="'.$attr['class'].'"' ) ) && ! preg_match( "/src=.*lazy_placeholder.gif['\"]/s", 'src="'.$attr['src'].'"' ) ) {
285
 
286
  $attr['data-src'] = $attr['src'];
287
  $attr['src'] = $A3_Lazy_Load->_placeholder_url;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: a3rev, a3rev Software, nguyencongtuan
3
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
4
  Requires at least: 4.5
5
  Tested up to: 4.7.5
6
- Stable tag: 1.8.0
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -136,6 +136,9 @@ Want to add a new language to a3 Lazy Load? Great! You can contribute via [trans
136
 
137
  == Changelog ==
138
 
 
 
 
139
  = 1.8.0 - 2017/05/30 =
140
  * Feature – Updated for compatibility with Better AMP plugin
141
  * Feature – Launched a3Lazy Load Github public Repository
@@ -273,6 +276,9 @@ Want to add a new language to a3 Lazy Load? Great! You can contribute via [trans
273
 
274
  == Upgrade Notice ==
275
 
 
 
 
276
  = 1.8.0 =
277
  Feature Upgrade. 1 bug fix, 3 new features, 2 code updates for compatibility with WordPress v 4.7.5, PHP 7.0, Better AMP plugin and launch public Github Repo
278
 
3
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
4
  Requires at least: 4.5
5
  Tested up to: 4.7.5
6
+ Stable tag: 1.8.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.8.1 - 2017/05/31 =
140
+ * Fix - Use correct object A3_Lazy_Load instead of ‘this’ as it was causing a fatal error
141
+
142
  = 1.8.0 - 2017/05/30 =
143
  * Feature – Updated for compatibility with Better AMP plugin
144
  * Feature – Launched a3Lazy Load Github public Repository
276
 
277
  == Upgrade Notice ==
278
 
279
+ = 1.8.1 =
280
+ Maintenance Update. 1 bug fix causing afatal error from version 1.8.0 release yesterday
281
+
282
  = 1.8.0 =
283
  Feature Upgrade. 1 bug fix, 3 new features, 2 code updates for compatibility with WordPress v 4.7.5, PHP 7.0, Better AMP plugin and launch public Github Repo
284