Skip to content

Commit 58fb47d

Browse files
committed
Release new version 2.7.1
= 2.7.1 - 2023/11/23 = * This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1 * Tweak - Test for compatibility with WordPress 6.4.1 * Framework - Set parameter number of preg_match function from null to 0 for compatibility with PHP 8.1 onwards * Framework - Validate empty before call trim for option value
1 parent ed0fa2a commit 58fb47d

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

a3-lazy-load.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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.0
5+
Version: 2.7.1
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
8-
Requires at least: 5.6
9-
Tested up to: 6.3
8+
Requires at least: 6.0
9+
Tested up to: 6.4.1
1010
Text Domain: a3-lazy-load
1111
Domain Path: /languages
1212
License: GPLv2 or later
@@ -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.0' );
34+
define( 'A3_LAZY_VERSION', '2.7.1' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;

admin/admin-interface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public function save_settings( $options, $option_name = '' ) {
924924
}
925925

926926
// Just for Color type
927-
if ( 'color' == $value['type'] && '' == trim( $option_value ) ) {
927+
if ( 'color' == $value['type'] && ( empty( $option_value ) || '' == trim( $option_value ) ) ) {
928928
$option_value = 'transparent';
929929
}
930930
// Just for Background Color type

admin/less/lib/lessc.inc.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
34043404
if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault;
34053405

34063406
$r = '/'.$regex.($eatWhitespace && !$this->writeComments ? '\s*' : '').'/Ais';
3407-
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
3407+
if (preg_match($r, $this->buffer, $out, 0, $this->count)) {
34083408
$this->count += strlen($out[0]);
34093409
if ($eatWhitespace && $this->writeComments) $this->whitespace();
34103410
return true;
@@ -3416,7 +3416,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
34163416
protected function whitespace() {
34173417
if ($this->writeComments) {
34183418
$gotWhite = false;
3419-
while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
3419+
while (preg_match(self::$whitePattern, $this->buffer, $m, 0, $this->count)) {
34203420
if (isset($m[1]) && empty($this->commentsSeen[$this->count])) {
34213421
$this->append(array("comment", $m[1]));
34223422
$this->commentsSeen[$this->count] = true;
@@ -3435,7 +3435,7 @@ protected function whitespace() {
34353435
protected function peek($regex, &$out = null, $from=null) {
34363436
if (is_null($from)) $from = $this->count;
34373437
$r = '/'.$regex.'/Ais';
3438-
$result = preg_match($r, $this->buffer, $out, null, $from);
3438+
$result = preg_match($r, $this->buffer, $out, 0, $from);
34393439

34403440
return $result;
34413441
}

readme.txt

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== a3 Lazy Load ===
22
Contributors: a3rev, a3rev Software, nguyencongtuan
33
Tags: a3 lazy load, Lazy Loading, image lazy load, lazyload
4-
Requires at least: 5.6
5-
Tested up to: 6.3
6-
Stable tag: 2.7.0
4+
Requires at least: 6.0
5+
Tested up to: 6.4.1
6+
Stable tag: 2.7.1
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

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

203203
== Changelog ==
204204

205+
= 2.7.1 - 2023/11/23 =
206+
* This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
207+
* Tweak - Test for compatibility with WordPress 6.4.1
208+
* Framework - Set parameter number of preg_match function from null to 0 for compatibility with PHP 8.1 onwards
209+
* Framework - Validate empty before call trim for option value
210+
205211
= 2.7.0 - 2023/01/03 =
206212
* This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls.
207213
* Feature - Convert icon from font awesome to SVG
@@ -627,6 +633,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
627633

628634
== Upgrade Notice ==
629635

636+
= 2.7.1 =
637+
This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
638+
630639
= 2.7.0 =
631640
This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls.
632641

0 commit comments

Comments
 (0)