a3 Lazy Load - Version 2.6.1

Version Description

This maintenance release has a security vulnerability patch, please run this update.

Download this release

Release Info

Developer a3rev
Plugin Icon 128x128 a3 Lazy Load
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6.0 to 2.6.1

a3-lazy-load.php CHANGED
@@ -2,11 +2,11 @@
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  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.6.0
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 5.6
9
- Tested up to: 6.0
10
  Text Domain: a3-lazy-load
11
  Domain Path: /languages
12
  License: GPLv2 or later
@@ -31,7 +31,7 @@ define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
31
 
32
  define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33
  define( 'A3_LAZY_LOAD_PREFIX', 'a3_lazy_load_' );
34
- define( 'A3_LAZY_VERSION', '2.6.0' );
35
  define( 'A3_LAZY_LOAD_G_FONTS', false );
36
 
37
  use \A3Rev\LazyLoad\FrameWork;
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  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.6.1
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 5.6
9
+ Tested up to: 6.1
10
  Text Domain: a3-lazy-load
11
  Domain Path: /languages
12
  License: GPLv2 or later
31
 
32
  define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33
  define( 'A3_LAZY_LOAD_PREFIX', 'a3_lazy_load_' );
34
+ define( 'A3_LAZY_VERSION', '2.6.1' );
35
  define( 'A3_LAZY_LOAD_G_FONTS', false );
36
 
37
  use \A3Rev\LazyLoad\FrameWork;
admin/admin-init.php CHANGED
@@ -217,7 +217,7 @@ class Admin_Init extends Admin_UI
217
  $activated_first_tab = false;
218
  $tab_data = false;
219
  foreach ( $tabs as $tab ) {
220
- echo '<a href="' . add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) . '" class="nav-tab ';
221
  if ( $current_tab == '' && $activated_first_tab === false ) {
222
  echo 'nav-tab-active';
223
  $activated_first_tab = true;
217
  $activated_first_tab = false;
218
  $tab_data = false;
219
  foreach ( $tabs as $tab ) {
220
+ echo '<a href="' . esc_url( add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) ) . '" class="nav-tab ';
221
  if ( $current_tab == '' && $activated_first_tab === false ) {
222
  echo 'nav-tab-active';
223
  $activated_first_tab = true;
admin/admin-interface.php CHANGED
@@ -618,6 +618,10 @@ class Admin_Interface extends Admin_UI
618
  foreach ( $options as $value ) {
619
  if ( ! isset( $value['type'] ) ) continue;
620
  if ( in_array( $value['type'], array( 'row', 'column', 'heading', 'ajax_submit', 'ajax_multi_submit' ) ) ) continue;
 
 
 
 
621
 
622
  // Save for global settings of plugin framework
623
  switch ( $value['type'] ) {
@@ -1030,6 +1034,14 @@ class Admin_Interface extends Admin_UI
1030
  /*-----------------------------------------------------------------------------------*/
1031
 
1032
  public function reset_settings( $options, $option_name = '', $reset = false, $free_version = false ) {
 
 
 
 
 
 
 
 
1033
 
1034
  if ( !is_array( $options ) || count( $options ) < 1 ) return;
1035
 
@@ -1089,6 +1101,11 @@ class Admin_Interface extends Admin_UI
1089
  if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
1090
  if ( ! isset( $value['default'] ) ) $value['default'] = '';
1091
  if ( ! isset( $value['free_version'] ) ) $value['free_version'] = false;
 
 
 
 
 
1092
 
1093
  // For way it has an option name
1094
  if ( ! isset( $value['separate_option'] ) ) $value['separate_option'] = false;
618
  foreach ( $options as $value ) {
619
  if ( ! isset( $value['type'] ) ) continue;
620
  if ( in_array( $value['type'], array( 'row', 'column', 'heading', 'ajax_submit', 'ajax_multi_submit' ) ) ) continue;
621
+ if ( stristr( $value['type'], 'custom_' ) !== false ) {
622
+ do_action( $this->plugin_name . '_save_setting_' . $value['type'], $value );
623
+ continue;
624
+ }
625
 
626
  // Save for global settings of plugin framework
627
  switch ( $value['type'] ) {
1034
  /*-----------------------------------------------------------------------------------*/
1035
 
1036
  public function reset_settings( $options, $option_name = '', $reset = false, $free_version = false ) {
1037
+
1038
+ if ( $reset ) {
1039
+ check_admin_referer( 'save_settings_' . $this->plugin_name );
1040
+
1041
+ if ( ! current_user_can( 'manage_options' ) ) {
1042
+ return false;
1043
+ }
1044
+ }
1045
 
1046
  if ( !is_array( $options ) || count( $options ) < 1 ) return;
1047
 
1101
  if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
1102
  if ( ! isset( $value['default'] ) ) $value['default'] = '';
1103
  if ( ! isset( $value['free_version'] ) ) $value['free_version'] = false;
1104
+
1105
+ if ( stristr( $value['type'], 'custom_' ) !== false ) {
1106
+ do_action( $this->plugin_name . '_reset_setting_' . $value['type'], $value );
1107
+ continue;
1108
+ }
1109
 
1110
  // For way it has an option name
1111
  if ( ! isset( $value['separate_option'] ) ) $value['separate_option'] = false;
admin/admin-ui.php CHANGED
@@ -33,7 +33,7 @@ class Admin_UI
33
  * You must change to correct plugin name that you are working
34
  */
35
 
36
- public $framework_version = '2.6.0';
37
  public $plugin_name = A3_LAZY_LOAD_KEY;
38
  public $plugin_path = A3_LAZY_LOAD_NAME;
39
  public $google_api_key_option = '';
@@ -353,7 +353,7 @@ class Admin_UI
353
  $output = apply_filters( $this->plugin_name . '_plugin_extension_start', $output );
354
 
355
  if ( $echo )
356
- echo $output;
357
  else
358
  return $output;
359
  }
33
  * You must change to correct plugin name that you are working
34
  */
35
 
36
+ public $framework_version = '2.6.2';
37
  public $plugin_name = A3_LAZY_LOAD_KEY;
38
  public $plugin_path = A3_LAZY_LOAD_NAME;
39
  public $google_api_key_option = '';
353
  $output = apply_filters( $this->plugin_name . '_plugin_extension_start', $output );
354
 
355
  if ( $echo )
356
+ echo wp_kses_post( $output );
357
  else
358
  return $output;
359
  }
admin/includes/fonts_face.php CHANGED
@@ -623,9 +623,9 @@ class Fonts_Face extends Admin_UI
623
  $font_css = '';
624
 
625
  if ( !@$option['style'] && !@$option['size'] && !@$option['color'] )
626
- $font_css = 'font-family: '.stripslashes($option["face"]).' !important;';
627
  else
628
- $font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes($option['face']).' !important; color:'.$option['color'].' !important;';
629
 
630
  return apply_filters( $this->plugin_name . '_generate_font_css', $font_css, $option, $em );
631
  }
623
  $font_css = '';
624
 
625
  if ( !@$option['style'] && !@$option['size'] && !@$option['color'] )
626
+ $font_css = 'font-family: '.stripslashes( str_replace( array( '"', "'" ), '', $option["face"] ) ).' !important;';
627
  else
628
+ $font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes( str_replace( array( '"', "'" ), '', $option['face'] ) ).' !important; color:'.$option['color'].' !important;';
629
 
630
  return apply_filters( $this->plugin_name . '_generate_font_css', $font_css, $option, $em );
631
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: a3rev, a3rev Software, nguyencongtuan
3
  Tags: a3 lazy load, Lazy Loading, image lazy load, lazyload
4
  Requires at least: 5.6
5
- Tested up to: 6.0
6
- Stable tag: 2.6.0
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -202,6 +202,10 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
202
 
203
  == Changelog ==
204
 
 
 
 
 
205
  = 2.6.0 - 2022/07/20 =
206
  * This release adds the option to switch OFF WordPress Core Lazy Load.
207
  * Feature - Add Option to completely disable WordPress Core Lazy Load.
@@ -614,6 +618,9 @@ Filter tags to add to class name of theme to exclude lazy load on images or vide
614
 
615
  == Upgrade Notice ==
616
 
 
 
 
617
  = 2.6.0 =
618
  This release adds the option to switch OFF WordPress Core Lazy Load.
619
 
2
  Contributors: a3rev, a3rev Software, nguyencongtuan
3
  Tags: a3 lazy load, Lazy Loading, image lazy load, lazyload
4
  Requires at least: 5.6
5
+ Tested up to: 6.1
6
+ Stable tag: 2.6.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
202
 
203
  == Changelog ==
204
 
205
+ = 2.6.1 - 2022/10/04 =
206
+ * This maintenance release has a security vulnerability patch, please run this update.
207
+ * Security - This release has a patch for a security vulnerability identified by Wordfence scan
208
+
209
  = 2.6.0 - 2022/07/20 =
210
  * This release adds the option to switch OFF WordPress Core Lazy Load.
211
  * Feature - Add Option to completely disable WordPress Core Lazy Load.
618
 
619
  == Upgrade Notice ==
620
 
621
+ = 2.6.1 =
622
+ This maintenance release has a security vulnerability patch, please run this update.
623
+
624
  = 2.6.0 =
625
  This release adds the option to switch OFF WordPress Core Lazy Load.
626