| @@ -148,8 +148,9 @@ | ||
| 148 | 148 | $this->add_group_control( |
| 149 | 149 | Group_Control_Image_Size::get_type(), |
| 150 | 150 | [ |
| 151 | 151 | 'name' => 'primary_thumbnail', |
| 152 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 152 | 153 | 'exclude' => ['custom'], |
| 153 | 154 | 'default' => 'full', |
| 154 | 155 | ] |
| 155 | 156 | ); |
| @@ -446,10 +447,13 @@ | ||
| 446 | 447 | |
| 447 | 448 | $this->add_control( |
| 448 | 449 | 'pauseonhover', |
| 449 | 450 | [ |
| 450 | - 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ), | |
| 451 | - 'type' => Controls_Manager::SWITCHER, | |
| 451 | + 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ), | |
| 452 | + 'type' => Controls_Manager::SWITCHER, | |
| 453 | + 'condition' => [ | |
| 454 | + 'autoplay' => 'yes', | |
| 455 | + ], | |
| 452 | 456 | ] |
| 453 | 457 | ); |
| 454 | 458 | |
| 455 | 459 | $this->add_control( |
| @@ -2145,9 +2149,9 @@ | ||
| 2145 | 2149 | |
| 2146 | 2150 | <div class="upk-author-role"> |
| 2147 | 2151 | <?php |
| 2148 | 2152 | $aid = get_the_author_meta('ID'); |
| 2149 | - echo get_user_role($aid); | |
| 2153 | + echo esc_html( get_user_role( $aid ) ); | |
| 2150 | 2154 | ?> |
| 2151 | 2155 | </div> |
| 2152 | 2156 | </div> |
| 2153 | 2157 | </div> |
| @@ -2387,9 +2391,9 @@ | ||
| 2387 | 2391 | <div class="upk-meta upk-flex upk-flex-middle"> |
| 2388 | 2392 | <?php $this->render_date(); ?> |
| 2389 | 2393 | <?php if (_is_upk_pro_activated()) : |
| 2390 | 2394 | if ('yes' === $settings['show_reading_time']) : ?> |
| 2391 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 2395 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 2392 | 2396 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 2393 | 2397 | </div> |
| 2394 | 2398 | <?php endif; ?> |
| 2395 | 2399 | <?php endif; ?> |