Skip to content

Commit fc90588

Browse files
committed
Release new version 2.5.1
= 2.5.1 - 2022/06/07 = * This maintenance release fixes a critical error when updating the plugin settings * Fix - Add missed $ to _POST constant from textarea control type
1 parent a206ac5 commit fc90588

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

a3-lazy-load.php

Lines changed: 2 additions & 2 deletions
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.5.0
5+
Version: 2.5.1
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 5.6
@@ -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.5.0' );
34+
define( 'A3_LAZY_VERSION', '2.5.1' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;

admin/admin-interface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ public function save_settings( $options, $option_name = '' ) {
908908
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {
909909
$option_value = array_map( 'sanitize_textarea_field', wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
910910
} else {
911-
$option_value = sanitize_textarea_field( wp_unslash( _POST[ $option_name ][ $id_attribute ] ) );
911+
$option_value = sanitize_textarea_field( wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
912912
}
913913
} else {
914914
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {

readme.txt

Lines changed: 8 additions & 1 deletion
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: 5.6
55
Tested up to: 6.0
6-
Stable tag: 2.5.0
6+
Stable tag: 2.5.1
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

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

199199
== Changelog ==
200200

201+
= 2.5.1 - 2022/06/07 =
202+
* This maintenance release fixes a critical error when updating the plugin settings
203+
* Fix - Add missed $ to _POST constant from textarea control type
204+
201205
= 2.5.0 - 2022/05/24 =
202206
* This release is for compatibility with WordPress major version 6.0 plus includes various tweaks to harden the plugins security.
203207
* Tweak - Test for compatibility with WordPress 6.0
@@ -600,6 +604,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
600604

601605
== Upgrade Notice ==
602606

607+
= 2.5.1 =
608+
This maintenance release fixes a critical error when updating the plugin settings
609+
603610
= 2.5.0 =
604611
This release is for compatibility with WordPress major version 6.0 plus includes various tweaks to harden the plugins security
605612

0 commit comments

Comments
 (0)