a3 Lazy Load - Version 1.8.7

Version Description

Maintenance Update. 2 code tweaks to enhance the lazy loading of images, video and iframe added by third party shortcodes in the content

Download this release

Release Info

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

Code changes from version 1.8.6 to 1.8.7

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.6
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
@@ -30,7 +30,7 @@ define('A3_LAZY_LOAD_CSS_URL', A3_LAZY_LOAD_URL . '/assets/css');
30
  define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
31
 
32
  define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33
- define( 'A3_LAZY_VERSION', '1.8.6' );
34
 
35
  /**
36
  * Load Localisation files.
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.7
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
30
  define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
31
 
32
  define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33
+ define( 'A3_LAZY_VERSION', '1.8.7' );
34
 
35
  /**
36
  * Load Localisation files.
classes/class-a3-lazy-load.php CHANGED
@@ -67,10 +67,10 @@ class A3_Lazy_Load
67
  //add_filter( 'wp_get_attachment_image_attributes', array( $this, 'get_attachment_image_attributes' ), 200 );
68
 
69
  if ( $a3_lazy_load_global_settings['a3l_apply_image_to_content'] == true ) {
70
- add_filter( 'the_content', array( $this, 'filter_content_images' ), 10 );
71
 
72
  // Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
73
- add_filter( 'acf_the_content', array( $this, 'filter_content_images' ), 10 );
74
 
75
  }
76
  if ( $a3_lazy_load_global_settings['a3l_apply_image_to_textwidget'] == true ) {
@@ -100,10 +100,10 @@ class A3_Lazy_Load
100
  add_filter( 'a3_lazy_load_videos', array( $this, 'filter_videos' ), 10, 2 );
101
 
102
  if ( $a3_lazy_load_global_settings['a3l_apply_video_to_content'] == true ) {
103
- add_filter( 'the_content', array( $this, 'filter_videos' ), 10 );
104
 
105
  // Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
106
- add_filter( 'acf_the_content', array( $this, 'filter_videos' ), 10 );
107
  }
108
  if ( $a3_lazy_load_global_settings['a3l_apply_video_to_textwidget'] == true ) {
109
  add_action( 'dynamic_sidebar_before', array( $this, 'sidebar_before_filter_videos' ), 0 );
67
  //add_filter( 'wp_get_attachment_image_attributes', array( $this, 'get_attachment_image_attributes' ), 200 );
68
 
69
  if ( $a3_lazy_load_global_settings['a3l_apply_image_to_content'] == true ) {
70
+ add_filter( 'the_content', array( $this, 'filter_content_images' ), 100 );
71
 
72
  // Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
73
+ add_filter( 'acf_the_content', array( $this, 'filter_content_images' ), 100 );
74
 
75
  }
76
  if ( $a3_lazy_load_global_settings['a3l_apply_image_to_textwidget'] == true ) {
100
  add_filter( 'a3_lazy_load_videos', array( $this, 'filter_videos' ), 10, 2 );
101
 
102
  if ( $a3_lazy_load_global_settings['a3l_apply_video_to_content'] == true ) {
103
+ add_filter( 'the_content', array( $this, 'filter_videos' ), 100 );
104
 
105
  // Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
106
+ add_filter( 'acf_the_content', array( $this, 'filter_videos' ), 100 );
107
  }
108
  if ( $a3_lazy_load_global_settings['a3l_apply_video_to_textwidget'] == true ) {
109
  add_action( 'dynamic_sidebar_before', array( $this, 'sidebar_before_filter_videos' ), 0 );
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.9.4
6
- Stable tag: 1.8.6
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -194,6 +194,11 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
197
  = 1.8.6 - 2018/03/24 =
198
  * Maintenance Update. 1 bug fix from this morning 1.8.5 major maintenance release. A small piece of new code in v 1.8.5 was written on PHP v7 and is not compatible with PHP version 5.6 If you are running v PHP 5.6 please run this update to fix it
199
  * Fix - PHP Fatal Error Call instance a3_lazy_load instead of us $this is not an object caused by incompatibility with PHP version 5.6
@@ -371,6 +376,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
371
 
372
  == Upgrade Notice ==
373
 
 
 
 
374
  = 1.8.6 =
375
  Maintenance Update. 1 bug fix from this morning 1.8.5 major maintenance release. A small piece of new code in v 1.8.5 was written on PHP v7 and is not compatible with PHP version 5.6 If you are running v PHP 5.6 please run this update to fix it
376
 
3
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
4
  Requires at least: 4.5
5
  Tested up to: 4.9.4
6
+ Stable tag: 1.8.7
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
194
 
195
  == Changelog ==
196
 
197
+ = 1.8.7 - 2018/03/24 =
198
+ * Maintenance Update. 2 code tweaks to enhance the lazy loading of images, video and iframe added by third party shortcodes in the content
199
+ * Tweak - Increase lazy load filter priority value so that lazy load is applied to images loaded by the shortcode function do_shortcode
200
+ * Tweak - Increase lazy load filter priority value so that lazy load is applied to video and iframe loaded by the shortcode function do_shortcode
201
+
202
  = 1.8.6 - 2018/03/24 =
203
  * Maintenance Update. 1 bug fix from this morning 1.8.5 major maintenance release. A small piece of new code in v 1.8.5 was written on PHP v7 and is not compatible with PHP version 5.6 If you are running v PHP 5.6 please run this update to fix it
204
  * Fix - PHP Fatal Error Call instance a3_lazy_load instead of us $this is not an object caused by incompatibility with PHP version 5.6
376
 
377
  == Upgrade Notice ==
378
 
379
+ = 1.8.7 =
380
+ Maintenance Update. 2 code tweaks to enhance the lazy loading of images, video and iframe added by third party shortcodes in the content
381
+
382
  = 1.8.6 =
383
  Maintenance Update. 1 bug fix from this morning 1.8.5 major maintenance release. A small piece of new code in v 1.8.5 was written on PHP v7 and is not compatible with PHP version 5.6 If you are running v PHP 5.6 please run this update to fix it
384