Skip to content

Commit 706f658

Browse files
committed
Release new version 2.7.2
= 2.7.2 - 2024/02/06 = * This release has a fix for conflict with WordPress expand on click feature in the image block. * Fix - Update lazy load work compatibility with Expand on Click feature from core image block
1 parent 58fb47d commit 706f658

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
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: 2.7.1
5+
Version: 2.7.2
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 6.0
@@ -31,7 +31,7 @@
3131

3232
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
3333
define( 'A3_LAZY_LOAD_PREFIX', 'a3_lazy_load_' );
34-
define( 'A3_LAZY_VERSION', '2.7.1' );
34+
define( 'A3_LAZY_VERSION', '2.7.2' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;

classes/class-a3-lazy-load.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ protected function _filter_images( $content, $include_noscript = null ) {
422422
foreach ( $matches[0] as $imgHTML ) {
423423

424424
// don't to the replacement if a skip class is provided and the image has the class, or if the image is a data-uri
425-
if ( ! ( is_array( $this->_skip_images_classes ) && preg_match( $skip_images_regex, $imgHTML ) ) && ! preg_match( "/src=['\"]data:image/is", $imgHTML ) && ! preg_match( "/src=.*lazy_placeholder.gif['\"]/s", $imgHTML ) && ! $a3_lazy_load_excludes->has_skip_lazy_attribute( $imgHTML ) ) {
425+
if ( ! ( is_array( $this->_skip_images_classes ) && preg_match( $skip_images_regex, $imgHTML ) ) && ! preg_match( "/src=['\"]data:image/is", $imgHTML ) && ! preg_match( "/src=.*lazy_placeholder.gif['\"]/s", $imgHTML ) && ! $a3_lazy_load_excludes->has_skip_lazy_attribute( $imgHTML ) && strstr( $imgHTML, 'data-wp-bind--src=' ) == false ) {
426426
$i++;
427427
// replace the src and add the data-src attribute
428428
$replaceHTML = $imgHTML;

readme.txt

+8-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: 6.0
55
Tested up to: 6.4.1
6-
Stable tag: 2.7.1
6+
Stable tag: 2.7.2
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -202,6 +202,10 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
202202

203203
== Changelog ==
204204

205+
= 2.7.2 - 2024/02/06 =
206+
* This release has a fix for conflict with WordPress expand on click feature in the image block.
207+
* Fix - Update lazy load work compatibility with Expand on Click feature from core image block
208+
205209
= 2.7.1 - 2023/11/23 =
206210
* This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
207211
* Tweak - Test for compatibility with WordPress 6.4.1
@@ -633,6 +637,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
633637

634638
== Upgrade Notice ==
635639

640+
= 2.7.2 =
641+
This release has a fix for conflict with WordPress expand on click feature in the image block.
642+
636643
= 2.7.1 =
637644
This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
638645

0 commit comments

Comments
 (0)