| @@ -158,8 +158,9 @@ | ||
| 158 | 158 | $this->add_group_control( |
| 159 | 159 | Group_Control_Image_Size::get_type(), |
| 160 | 160 | [ |
| 161 | 161 | 'name' => 'primary_thumbnail', |
| 162 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 162 | 163 | 'exclude' => ['custom'], |
| 163 | 164 | 'default' => 'full', |
| 164 | 165 | ] |
| 165 | 166 | ); |
| @@ -934,9 +935,9 @@ | ||
| 934 | 935 | <?php |
| 935 | 936 | if (has_excerpt()) { |
| 936 | 937 | the_excerpt(); |
| 937 | 938 | } else { |
| 938 | - echo ultimate_post_kit_custom_excerpt($excerpt_length, $strip_shortcode); | |
| 939 | + echo wp_kses_post( ultimate_post_kit_custom_excerpt($excerpt_length, $strip_shortcode) ); | |
| 939 | 940 | } |
| 940 | 941 | ?> |
| 941 | 942 | </div> |
| 942 | 943 | |
| @@ -949,9 +950,9 @@ | ||
| 949 | 950 | return; |
| 950 | 951 | } |
| 951 | 952 | ?> |
| 952 | 953 | <div class="upk-category" data-swiper-parallax="-300"> |
| 953 | - <?php echo get_the_category_list(' '); ?> | |
| 954 | + <?php echo wp_kses_post( get_the_category_list(' ') ); ?> | |
| 954 | 955 | </div> |
| 955 | 956 | <?php |
| 956 | 957 | } |
| 957 | 958 | |
| @@ -1193,8 +1194,9 @@ | ||
| 1193 | 1194 | </div> |
| 1194 | 1195 | </div> |
| 1195 | 1196 | <?php |
| 1196 | 1197 | if (_is_upk_pro_activated()) { |
| 1198 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration. | |
| 1197 | 1199 | apply_filters('show_top_stories', $this); |
| 1198 | 1200 | } |
| 1199 | 1201 | ?> |
| 1200 | 1202 | |