← All changes
|
modules/buzz-list-carousel/widgets/buzz-list-carousel.php
+5
-4
4.1.13
→
4.5.6
View file →
| @@ -113,8 +113,9 @@ | ||
| 113 | 113 | $this->add_group_control( |
| 114 | 114 | Group_Control_Image_Size::get_type(), |
| 115 | 115 | [ |
| 116 | 116 | 'name' => 'primary_thumbnail', |
| 117 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 117 | 118 | 'exclude' => ['custom'], |
| 118 | 119 | 'default' => 'medium', |
| 119 | 120 | ] |
| 120 | 121 | ); |
| @@ -949,9 +950,9 @@ | ||
| 949 | 950 | <div class="upk-img-wrap"> |
| 950 | 951 | <?php $this->render_image(get_post_thumbnail_id($post_id), $image_size); ?> |
| 951 | 952 | </div> |
| 952 | 953 | <div class="upk-content"> |
| 953 | - <div class="upk-count"><?php printf("%2d", $slide_index); ?></div> | |
| 954 | + <div class="upk-count"><?php printf("%2d", esc_attr($slide_index)); ?></div> | |
| 954 | 955 | <div class="upk-inner"> |
| 955 | 956 | <?php $this->render_category(); ?> |
| 956 | 957 | <?php $this->render_title(substr($this->get_name(), 4)); ?> |
| 957 | 958 | <?php if ($settings['show_author'] or $settings['show_comments'] or $settings['show_date'] or $settings['show_reading_time']) : ?> |
| @@ -960,9 +961,9 @@ | ||
| 960 | 961 | <?php $this->render_author(); ?> |
| 961 | 962 | <?php endif; ?> |
| 962 | 963 | |
| 963 | 964 | <?php if ($settings['show_date']) : ?> |
| 964 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 965 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 965 | 966 | <?php $this->render_date(); ?> |
| 966 | 967 | </div> |
| 967 | 968 | <?php endif; ?> |
| 968 | 969 | |
| @@ -967,9 +968,9 @@ | ||
| 967 | 968 | <?php endif; ?> |
| 968 | 969 | |
| 969 | 970 | <?php if (_is_upk_pro_activated()) : |
| 970 | 971 | if ('yes' === $settings['show_reading_time']) : ?> |
| 971 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 972 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 972 | 973 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 973 | 974 | </div> |
| 974 | 975 | <?php endif; ?> |
| 975 | 976 | <?php endif; ?> |
| @@ -974,9 +975,9 @@ | ||
| 974 | 975 | <?php endif; ?> |
| 975 | 976 | <?php endif; ?> |
| 976 | 977 | |
| 977 | 978 | <?php if ($settings['show_comments']) : ?> |
| 978 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 979 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 979 | 980 | <?php $this->render_comments($post_id); ?> |
| 980 | 981 | </div> |
| 981 | 982 | <?php endif; ?> |
| 982 | 983 | |