| @@ -140,8 +140,9 @@ | ||
| 140 | 140 | $this->add_group_control( |
| 141 | 141 | Group_Control_Image_Size::get_type(), |
| 142 | 142 | [ |
| 143 | 143 | 'name' => 'primary_thumbnail', |
| 144 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 144 | 145 | 'exclude' => ['custom'], |
| 145 | 146 | 'default' => 'medium', |
| 146 | 147 | ] |
| 147 | 148 | ); |
| @@ -790,9 +791,9 @@ | ||
| 790 | 791 | } |
| 791 | 792 | |
| 792 | 793 | ?> |
| 793 | 794 | <a class="upk-image-wrap" href="<?php echo esc_url(get_permalink()) ?>"> |
| 794 | - <img src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>"> | |
| 795 | + <img src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>"> | |
| 795 | 796 | <span class="upk-img-overlay"></span> |
| 796 | 797 | </a> |
| 797 | 798 | <?php |
| 798 | 799 | } |
| @@ -845,15 +846,15 @@ | ||
| 845 | 846 | <div class="upk-meta upk-flex upk-flex-middle"> |
| 846 | 847 | <?php $this->render_author(); ?> |
| 847 | 848 | |
| 848 | 849 | <?php if ($settings['show_date'] == 'yes') : ?> |
| 849 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 850 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 850 | 851 | <?php $this->render_date(); ?> |
| 851 | 852 | </div> |
| 852 | 853 | <?php endif; ?> |
| 853 | 854 | |
| 854 | 855 | <?php if ($settings['show_comments']) : ?> |
| 855 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 856 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 856 | 857 | <?php $this->render_comments($post_id); ?> |
| 857 | 858 | </div> |
| 858 | 859 | <?php endif; ?> |
| 859 | 860 | |
| @@ -858,9 +859,9 @@ | ||
| 858 | 859 | <?php endif; ?> |
| 859 | 860 | |
| 860 | 861 | <?php if (_is_upk_pro_activated()) : |
| 861 | 862 | if ('yes' === $settings['show_reading_time']) : ?> |
| 862 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 863 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 863 | 864 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 864 | 865 | </div> |
| 865 | 866 | <?php endif; ?> |
| 866 | 867 | <?php endif; ?> |