| @@ -139,8 +139,9 @@ | ||
| 139 | 139 | $this->add_group_control( |
| 140 | 140 | Group_Control_Image_Size::get_type(), |
| 141 | 141 | [ |
| 142 | 142 | 'name' => 'primary_thumbnail', |
| 143 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 143 | 144 | 'exclude' => ['custom'], |
| 144 | 145 | 'default' => 'medium', |
| 145 | 146 | ] |
| 146 | 147 | ); |
| @@ -1208,9 +1209,9 @@ | ||
| 1208 | 1209 | |
| 1209 | 1210 | <?php if ($settings['show_author'] or $settings['show_date'] or $settings['show_reading_time']) : ?> |
| 1210 | 1211 | <div class="upk-meta"> |
| 1211 | 1212 | <?php if ($settings['show_author']) : ?> |
| 1212 | - <div class="upk-blog-author" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1213 | + <div class="upk-blog-author" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1213 | 1214 | <a |
| 1214 | 1215 | class="author-name" |
| 1215 | 1216 | href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID')) ); ?>" |
| 1216 | 1217 | aria-label="<?php echo esc_attr( 'View all posts by ' . get_the_author() ); ?>" |
| @@ -1219,9 +1220,9 @@ | ||
| 1219 | 1220 | </a> |
| 1220 | 1221 | </div> |
| 1221 | 1222 | <?php endif; ?> |
| 1222 | 1223 | <?php if ('yes' === $settings['show_date']) : ?> |
| 1223 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1224 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1224 | 1225 | <?php $this->render_date(); ?> |
| 1225 | 1226 | </div> |
| 1226 | 1227 | <?php endif; ?> |
| 1227 | 1228 | |
| @@ -1226,9 +1227,9 @@ | ||
| 1226 | 1227 | <?php endif; ?> |
| 1227 | 1228 | |
| 1228 | 1229 | <?php if (_is_upk_pro_activated()) : |
| 1229 | 1230 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1230 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1231 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1231 | 1232 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1232 | 1233 | </div> |
| 1233 | 1234 | <?php endif; ?> |
| 1234 | 1235 | <?php endif; ?> |