Skip to content

Commit

Permalink
fixed security issue & update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Armanul46 committed Dec 7, 2024
1 parent ed0584e commit 7b6086b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions includes/classes/class-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,15 @@ public function register( $atts, $content = null ) {

$header_title = ! empty( $header_title ) ? $header_title : '';

$allowed_layouts = array( 'carousel', 'grid' );
$allowed_themes = array( 'theme_1', 'theme_2', 'theme_3' );

// shortcode attribute
$layout = ! empty( $atts['layout'] ) ? $atts['layout'] : $layout;
$layout = in_array( $layout, $allowed_layouts, true ) ? $layout : 'carousel';

$theme = ! empty( $atts['theme'] ) ? $atts['theme'] : $theme;
$theme = in_array( $theme, $allowed_themes, true ) ? $theme : 'theme_1';
$total_products = ! empty( $atts['total_products'] ) ? $atts['total_products'] : $total_products;
$h_title_show = ! empty( $atts['h_title_show'] ) ? $atts['h_title_show'] : $h_title_show;
$header_title = ! empty( $atts['header_title'] ) ? $atts['header_title'] : $header_title;
Expand Down
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Product Carousel Slider & Grid Ultimate for WooCommerce
Plugin URI: https://wpwax.com/product/woocommerce-product-carousel-slider-grid-ultimate-pro
Description: It is a fully responsive and mobile friendly WooCommerce Product Carousel, Slider and Grid plugin which comes with lots of features.
Version: 1.9.10
Version: 1.10.0
Author: wpWax
Author URI: https://wpwax.com
License: GPL2
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: wpwax
Tags: woocommerce carousel, woocommerce slider, woocommerce grid, woocommerce product slider, woocommerce product carousel, WooCommerce product display, WooCommerce product grid plugin, Dynamic product sliders, WooCommerce product carousel plugin, Customizable product sliders, Responsive WooCommerce carousel, WooCommerce product showcase
Requires at least: 4.0
Tested up to: 6.5
Stable tag: 1.9.10
Tested up to: 6.7
Stable tag: 1.10.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -144,6 +144,9 @@ Post Grid and Carousel Ultimate plugin is very easy to use. Just follow the foll
12. Backend: Style Settings

== Changelog ==
= 1.10.0 =
* Add: WordPress 6.7 compatibility
* Fix: security issue
= 1.9.10 =
* Fix: woocommerce high-performance order storage issue
= 1.9.9 =
Expand Down

0 comments on commit 7b6086b

Please sign in to comment.