| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | use Elementor\Group_Control_Border; |
| 8 | 8 | use Elementor\Group_Control_Box_Shadow; |
| 9 | 9 | use Elementor\Group_Control_Image_Size; |
| 10 | 10 | use Elementor\Group_Control_Typography; |
| 11 | +// phpcs:disable WordPressVIPMinimum.Performance.WPQueryParams -- WordPressVIPMinimum targets the VIP platform, not the plugin directory. These exclusionary parameters come from a widget's own "exclude" control: the list is whatever the site owner picked in Elementor, applied to a bounded result set, not an unbounded catalogue scan. | |
| 12 | + | |
| 11 | 13 | // use Elementor\Utils; |
| 12 | 14 | use UltimateStoreKit\Base\Module_Base; |
| 13 | 15 | use UltimateStoreKit\Traits\Global_Terms_Query_Controls; |
| 14 | 16 | use UltimateStoreKit\Classes\Utils; |
| @@ -793,9 +795,9 @@ | ||
| 793 | 795 | 'usk-item' |
| 794 | 796 | ], |
| 795 | 797 | 'data-settings' => [ |
| 796 | 798 | wp_json_encode(array_filter([ |
| 797 | - "autoplay" => ("yes" == $settings["thumbs_autoplay"]) ? ["delay" => $settings["thumbs_autoplay_speed"] + $index += rand(500, 1500)] : false, | |
| 799 | + "autoplay" => ("yes" == $settings["thumbs_autoplay"]) ? ["delay" => $settings["thumbs_autoplay_speed"] + $index += wp_rand(500, 1500)] : false, | |
| 798 | 800 | "loop" => ($settings["thumbs_loop"] == "yes") ? true : false, |
| 799 | 801 | "speed" => $settings["thumbs_slide_speed"]["size"], |
| 800 | 802 | "fadeEffect" => ['crossFade' => true], |
| 801 | 803 | "effect" => $settings["thumbs_effect"], |
| @@ -865,9 +867,9 @@ | ||
| 865 | 867 | <?php |
| 866 | 868 | printf( |
| 867 | 869 | '<a href="%2$s"><span>%1$s</span><i class="usk-icon-arrow-right-8"></i></a>', |
| 868 | 870 | /* translators: %s: Category name */ |
| 869 | - sprintf(esc_html__('All %s', 'ultimate-store-kit'), $category->name), | |
| 871 | + sprintf(esc_html__('All %s', 'ultimate-store-kit'), esc_html($category->name)), | |
| 870 | 872 | esc_url(get_term_link($category->term_id, 'product_cat')) |
| 871 | 873 | ); |
| 872 | 874 | ?> |
| 873 | 875 | </div> |