Skip to content

Commit 966a6ae

Browse files
committed
Release new version 1.9.2
= 1.9.2 - 2022/11/01 = * This maintenance release has a security vulnerability patch, plus compatibility with WordPress major version 6.1.0 and WooCommerce version 7.0 * Tweak - Test for compatibility with WordPress 6.1 * Tweak - Test for compatibility with WooCommerce 7.0 * Security – This release has a patch for a security vulnerability
1 parent 753f102 commit 966a6ae

File tree

6 files changed

+37
-11
lines changed

6 files changed

+37
-11
lines changed

admin/admin-init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function admin_settings_page( $page_data = array() ) {
217217
$activated_first_tab = false;
218218
$tab_data = false;
219219
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 ';
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 ';
221221
if ( $current_tab == '' && $activated_first_tab === false ) {
222222
echo 'nav-tab-active';
223223
$activated_first_tab = true;

admin/admin-interface.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ public function save_settings( $options, $option_name = '' ) {
618618
foreach ( $options as $value ) {
619619
if ( ! isset( $value['type'] ) ) continue;
620620
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+
}
621625

622626
// Save for global settings of plugin framework
623627
switch ( $value['type'] ) {
@@ -908,7 +912,7 @@ public function save_settings( $options, $option_name = '' ) {
908912
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {
909913
$option_value = array_map( 'sanitize_textarea_field', wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
910914
} else {
911-
$option_value = sanitize_textarea_field( wp_unslash( _POST[ $option_name ][ $id_attribute ] ) );
915+
$option_value = sanitize_textarea_field( wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
912916
}
913917
} else {
914918
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {
@@ -1030,6 +1034,14 @@ public function save_settings( $options, $option_name = '' ) {
10301034
/*-----------------------------------------------------------------------------------*/
10311035

10321036
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+
}
10331045

10341046
if ( !is_array( $options ) || count( $options ) < 1 ) return;
10351047

@@ -1089,6 +1101,11 @@ public function reset_settings( $options, $option_name = '', $reset = false, $fr
10891101
if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
10901102
if ( ! isset( $value['default'] ) ) $value['default'] = '';
10911103
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+
}
10921109

10931110
// For way it has an option name
10941111
if ( ! isset( $value['separate_option'] ) ) $value['separate_option'] = false;

admin/admin-ui.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Admin_UI
3333
* You must change to correct plugin name that you are working
3434
*/
3535

36-
public $framework_version = '2.6.0';
36+
public $framework_version = '2.6.2';
3737
public $plugin_name = WC_PRODUCT_SLIDER_KEY;
3838
public $plugin_path = WC_PRODUCT_SLIDER_NAME;
3939
public $google_api_key_option = '';

admin/includes/fonts_face.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,9 @@ public function generate_font_css( $option, $em = '1.2' ) {
623623
$font_css = '';
624624

625625
if ( !@$option['style'] && !@$option['size'] && !@$option['color'] )
626-
$font_css = 'font-family: '.stripslashes($option["face"]).' !important;';
626+
$font_css = 'font-family: '.stripslashes( str_replace( array( '"', "'" ), '', $option["face"] ) ).' !important;';
627627
else
628-
$font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes($option['face']).' !important; color:'.$option['color'].' !important;';
628+
$font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes( str_replace( array( '"', "'" ), '', $option['face'] ) ).' !important; color:'.$option['color'].' !important;';
629629

630630
return apply_filters( $this->plugin_name . '_generate_font_css', $font_css, $option, $em );
631631
}

product-image-gallery-widget.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
/*
33
Plugin Name: Product Widget Slider for WooCommerce
44
Description: Adds visually stunning WooCommerce product sliders to any widgeted area. Fully customizable, Widget Skin. Fully mobile responsive. Show any number of products from a selected product category.
5-
Version: 1.9.1
5+
Version: 1.9.2
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 5.6
9-
Tested up to: 6.0
9+
Tested up to: 6.1
1010
Text Domain: woo-widget-product-slideshow
1111
Domain Path: /languages
1212
WC requires at least: 3.0
13-
WC tested up to: 6.5
13+
WC tested up to: 7.0
1414
License: GPLv2 or later
1515
1616
WooCommerce Widget Product Slider Lite plugin.
@@ -41,7 +41,7 @@
4141

4242
define( 'WC_PRODUCT_SLIDER_KEY', 'woo_gallery_widget' );
4343
define( 'WC_PRODUCT_SLIDER_PREFIX', 'wc_product_slider_' );
44-
define( 'WC_PRODUCT_SLIDER_VERSION', '1.9.1' );
44+
define( 'WC_PRODUCT_SLIDER_VERSION', '1.9.2' );
4545
define( 'WC_PRODUCT_SLIDER_G_FONTS', true );
4646

4747
use \A3Rev\WCPSlider\FrameWork;

readme.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Contributors: a3rev, nguyencongtuan
44
Tags: WooCommerce widgets, WooCommerce, WooCommerce widget product slideshow, WooCommerce Product images, woothemes, wordpress ecommerce
55
Requires at least: 5.6
6-
Tested up to: 6.0
7-
Stable tag: 1.9.1
6+
Tested up to: 6.1
7+
Stable tag: 1.9.2
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -95,6 +95,12 @@ You can use this plugin only when you have installed the WooCommerce plugin.
9595

9696
== Changelog ==
9797

98+
= 1.9.2 - 2022/11/01 =
99+
* This maintenance release has a security vulnerability patch, plus compatibility with WordPress major version 6.1.0 and WooCommerce version 7.0
100+
* Tweak - Test for compatibility with WordPress 6.1
101+
* Tweak - Test for compatibility with WooCommerce 7.0
102+
* Security – This release has a patch for a security vulnerability
103+
98104
= 1.9.1 - 2022/05/25 =
99105
* This release fixes a bug with the just released version 1.9.0
100106
* Fix - Do not call update_google_map_api_key from construct of Admin UI
@@ -556,6 +562,9 @@ You can use this plugin only when you have installed the WooCommerce plugin.
556562

557563
== Upgrade Notice ==
558564

565+
= 1.9.2 =
566+
This maintenance release has a security vulnerability patch, plus compatibility with WordPress major version 6.1.0 and WooCommerce version 7.0
567+
559568
= 1.9.1 =
560569
This release fixes a bug with the just released version 1.9.0
561570

0 commit comments

Comments
 (0)