Skip to content

Commit 3d8f6e7

Browse files
committed
Release new version 2.4.7
= 2.4.7 - 2021/07/19 = * This maintenance release has code tweaks for WordPress 5.8 compatibility plus Security hardening. * Tweak - Test for lazy load work correctly with new WebP extension that WordPress 5.8 support * Tweak - Test for compatibility with WordPress 5.8 * Security - Add more variable, options and html escaping * Security - Get variable via name instead of use extract
1 parent b5749a0 commit 3d8f6e7

File tree

5 files changed

+172
-162
lines changed

5 files changed

+172
-162
lines changed

Diff for: a3-lazy-load.php

+3-3
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.4.6
5+
Version: 2.4.7
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 5.0
9-
Tested up to: 5.7.2
9+
Tested up to: 5.8
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.4.6' );
34+
define( 'A3_LAZY_VERSION', '2.4.7' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;

Diff for: admin/admin-init.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function admin_settings_page( $page_data = array() ) {
228228
$tab_data = $tab;
229229
}
230230
echo ' ' . esc_attr( sanitize_title( $tab['name'] ) );
231-
echo '">' . $tab['label'] . '</a>';
231+
echo '">' . esc_html( $tab['label'] ) . '</a>';
232232
}
233233

234234
do_action( $this->plugin_name . '-' . $current_page . '_settings_tabs' );
@@ -281,15 +281,15 @@ public function admin_settings_tab( $current_page = '', $tab_data = array() ) {
281281
$separate_text = '';
282282
$activated_first_subtab = false;
283283
foreach ( $subtabs as $subtab ) {
284-
echo '<li>' . $separate_text . '<a href="#' . trim( $subtab['name'] ) . '" class="';
284+
echo '<li>' . $separate_text . '<a href="#' . trim( esc_attr( $subtab['name'] ) ) . '" class="';
285285
if ( $current_subtab == '' && $activated_first_subtab === false ) {
286286
echo 'current';
287287
$activated_first_subtab = true;
288288
$current_subtab = $subtab['name'];
289289
} elseif ( $current_subtab == $subtab['name'] ) {
290290
echo 'current';
291291
}
292-
echo '">' . $subtab['label'] . '</a></li>' . "\n";
292+
echo '">' . esc_html( $subtab['label'] ) . '</a></li>' . "\n";
293293

294294
$separate_text = ' | ';
295295
}

0 commit comments

Comments
 (0)