Skip to content

Commit 7a64031

Browse files
committed
Release version 1.8.7
* Maintenance Update. 2 code tweaks to enhance the lazy loading of images, video and iframe added by third party shortcodes in the content * Tweak - Increase lazy load filter priority value so that lazy load is applied to images loaded by the shortcode function do_shortcode * Tweak - Increase lazy load filter priority value so that lazy load is applied to video and iframe loaded by the shortcode function do_shortcode
1 parent 3469811 commit 7a64031

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

a3-lazy-load.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: a3 Lazy Load
44
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
5+
Version: 1.8.7
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 4.0
@@ -30,7 +30,7 @@
3030
define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
3131

3232
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33-
define( 'A3_LAZY_VERSION', '1.8.6' );
33+
define( 'A3_LAZY_VERSION', '1.8.7' );
3434

3535
/**
3636
* Load Localisation files.

classes/class-a3-lazy-load.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function __construct() {
6767
//add_filter( 'wp_get_attachment_image_attributes', array( $this, 'get_attachment_image_attributes' ), 200 );
6868

6969
if ( $a3_lazy_load_global_settings['a3l_apply_image_to_content'] == true ) {
70-
add_filter( 'the_content', array( $this, 'filter_content_images' ), 10 );
70+
add_filter( 'the_content', array( $this, 'filter_content_images' ), 100 );
7171

7272
// Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
73-
add_filter( 'acf_the_content', array( $this, 'filter_content_images' ), 10 );
73+
add_filter( 'acf_the_content', array( $this, 'filter_content_images' ), 100 );
7474

7575
}
7676
if ( $a3_lazy_load_global_settings['a3l_apply_image_to_textwidget'] == true ) {
@@ -100,10 +100,10 @@ function __construct() {
100100
add_filter( 'a3_lazy_load_videos', array( $this, 'filter_videos' ), 10, 2 );
101101

102102
if ( $a3_lazy_load_global_settings['a3l_apply_video_to_content'] == true ) {
103-
add_filter( 'the_content', array( $this, 'filter_videos' ), 10 );
103+
add_filter( 'the_content', array( $this, 'filter_videos' ), 100 );
104104

105105
// Compatibility with ACF plugin - Thank you ondoheer https://github.com/ondoheer
106-
add_filter( 'acf_the_content', array( $this, 'filter_videos' ), 10 );
106+
add_filter( 'acf_the_content', array( $this, 'filter_videos' ), 100 );
107107
}
108108
if ( $a3_lazy_load_global_settings['a3l_apply_video_to_textwidget'] == true ) {
109109
add_action( 'dynamic_sidebar_before', array( $this, 'sidebar_before_filter_videos' ), 0 );

readme.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: a3rev, a3rev Software, nguyencongtuan
33
Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
44
Requires at least: 4.5
55
Tested up to: 4.9.4
6-
Stable tag: 1.8.6
6+
Stable tag: 1.8.7
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -194,6 +194,11 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
194194

195195
== Changelog ==
196196

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+
197202
= 1.8.6 - 2018/03/24 =
198203
* 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
199204
* 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
371376

372377
== Upgrade Notice ==
373378

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+
374382
= 1.8.6 =
375383
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
376384

0 commit comments

Comments
 (0)