← All changes
|
modules/category-carousel/widgets/category-carousel.php
+5
-19
4.1.2
→
4.5.6
View file →
| @@ -184,8 +184,9 @@ | ||
| 184 | 184 | $this->add_group_control( |
| 185 | 185 | Group_Control_Image_Size::get_type(), |
| 186 | 186 | [ |
| 187 | 187 | 'name' => 'primary_thumbnail', |
| 188 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 188 | 189 | 'exclude' => ['custom'], |
| 189 | 190 | 'default' => 'medium', |
| 190 | 191 | ] |
| 191 | 192 | ); |
| @@ -197,25 +198,8 @@ | ||
| 197 | 198 | 'label' => esc_html__('Query', 'ultimate-post-kit'), |
| 198 | 199 | ] |
| 199 | 200 | ); |
| 200 | 201 | |
| 201 | - // $this->add_control( | |
| 202 | - // 'item_limit', | |
| 203 | - // [ | |
| 204 | - // 'label' => esc_html__('Item Limit', 'ultimate-post-kit'), | |
| 205 | - // 'type' => Controls_Manager::SLIDER, | |
| 206 | - // 'range' => [ | |
| 207 | - // 'px' => [ | |
| 208 | - // 'min' => 1, | |
| 209 | - // 'max' => 50, | |
| 210 | - // ], | |
| 211 | - // ], | |
| 212 | - // 'default' => [ | |
| 213 | - // 'size' => 6, | |
| 214 | - // ], | |
| 215 | - // ] | |
| 216 | - // ); | |
| 217 | - | |
| 218 | 202 | $this->add_control( |
| 219 | 203 | 'taxonomy', |
| 220 | 204 | [ |
| 221 | 205 | 'label' => esc_html__('Taxonomy', 'ultimate-post-kit'), |
| @@ -391,9 +375,9 @@ | ||
| 391 | 375 | [ |
| 392 | 376 | 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'), |
| 393 | 377 | 'type' => Controls_Manager::SWITCHER, |
| 394 | 378 | // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag |
| 395 | - 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1s look here %2s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 379 | + 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1$s look here %2$s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 396 | 380 | 'default' => 'yes', |
| 397 | 381 | 'condition' => [ |
| 398 | 382 | 'skin_layout' => [ |
| 399 | 383 | 'style-5', |
| @@ -742,8 +726,9 @@ | ||
| 742 | 726 | Group_Control_Typography::get_type(), |
| 743 | 727 | [ |
| 744 | 728 | 'name' => 'category_typography', |
| 745 | 729 | 'label' => esc_html__('Typography', 'ultimate-post-kit'), |
| 730 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 746 | 731 | 'exclude' => ['line_height'], |
| 747 | 732 | 'selector' => '{{WRAPPER}} .upk-category-carousel .upk-item .upk-content .title', |
| 748 | 733 | ] |
| 749 | 734 | ); |
| @@ -912,9 +897,9 @@ | ||
| 912 | 897 | $image_src = $image_src[0]; |
| 913 | 898 | } |
| 914 | 899 | |
| 915 | 900 | ?> |
| 916 | - <img class="upk-category-carousel-img" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>"> | |
| 901 | + <img class="upk-category-carousel-img" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>"> | |
| 917 | 902 | <?php |
| 918 | 903 | } |
| 919 | 904 | |
| 920 | 905 | public function render_header() { |
| @@ -940,8 +925,9 @@ | ||
| 940 | 925 | 'taxonomy' => $settings["taxonomy"], |
| 941 | 926 | 'orderby' => $settings["orderby"], |
| 942 | 927 | 'order' => $settings["order"], |
| 943 | 928 | // 'include' => explode(',', esc_attr($settings["include"])), |
| 929 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 944 | 930 | 'exclude' => explode(',', esc_attr($settings["exclude"])), |
| 945 | 931 | 'parent' => $settings["parent"], |
| 946 | 932 | 'hide_empty' => 0, |
| 947 | 933 | ] |