| @@ -109,8 +109,9 @@ | ||
| 109 | 109 | $this->add_group_control( |
| 110 | 110 | Group_Control_Image_Size::get_type(), |
| 111 | 111 | [ |
| 112 | 112 | 'name' => 'primary_thumbnail', |
| 113 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 113 | 114 | 'exclude' => ['custom'], |
| 114 | 115 | 'default' => 'full', |
| 115 | 116 | ] |
| 116 | 117 | ); |
| @@ -242,10 +243,13 @@ | ||
| 242 | 243 | |
| 243 | 244 | $this->add_control( |
| 244 | 245 | 'pauseonhover', |
| 245 | 246 | [ |
| 246 | - 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'), | |
| 247 | - 'type' => Controls_Manager::SWITCHER, | |
| 247 | + 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'), | |
| 248 | + 'type' => Controls_Manager::SWITCHER, | |
| 249 | + 'condition' => [ | |
| 250 | + 'autoplay' => 'yes', | |
| 251 | + ], | |
| 248 | 252 | ] |
| 249 | 253 | ); |
| 250 | 254 | |
| 251 | 255 | $this->add_control( |
| @@ -398,9 +402,9 @@ | ||
| 398 | 402 | $this->add_group_control( |
| 399 | 403 | Group_Control_Text_Stroke::get_type(), |
| 400 | 404 | [ |
| 401 | 405 | 'name' => 'title_text_stroke', |
| 402 | - 'label' => __('Text Stroke', 'ultimate-post-kit') . BDTUPK_NC, | |
| 406 | + 'label' => __('Text Stroke', 'ultimate-post-kit'), | |
| 403 | 407 | 'selector' => '{{WRAPPER}} .upk-noxe-slider .upk-title', |
| 404 | 408 | ] |
| 405 | 409 | ); |
| 406 | 410 | |
| @@ -858,9 +862,9 @@ | ||
| 858 | 862 | return; |
| 859 | 863 | } |
| 860 | 864 | ?> |
| 861 | 865 | <div class="upk-noxe-category" data-swiper-parallax-opacity="0.5"> |
| 862 | - <?php echo upk_get_category($this->get_settings('posts_source')); ?> | |
| 866 | + <?php echo wp_kses_post( upk_get_category($this->get_settings('posts_source')) ); ?> | |
| 863 | 867 | </div> |
| 864 | 868 | <?php |
| 865 | 869 | } |
| 866 | 870 | |
| @@ -1014,9 +1018,9 @@ | ||
| 1014 | 1018 | <div class="upk-noxe-meta" data-swiper-parallax-y="-80"> |
| 1015 | 1019 | <?php $this->render_author(); ?> |
| 1016 | 1020 | |
| 1017 | 1021 | <?php if ($settings['show_comments'] == 'yes') : ?> |
| 1018 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1022 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1019 | 1023 | <?php $this->render_comments($post_id); ?> |
| 1020 | 1024 | </div> |
| 1021 | 1025 | <?php endif; ?> |
| 1022 | 1026 | |
| @@ -1021,9 +1025,9 @@ | ||
| 1021 | 1025 | <?php endif; ?> |
| 1022 | 1026 | |
| 1023 | 1027 | <?php if (_is_upk_pro_activated()) : |
| 1024 | 1028 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1025 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1029 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1026 | 1030 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1027 | 1031 | </div> |
| 1028 | 1032 | <?php endif; ?> |
| 1029 | 1033 | <?php endif; ?> |