| @@ -96,8 +96,9 @@ | ||
| 96 | 96 | ], |
| 97 | 97 | ] |
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration. | |
| 100 | 101 | $column_size = apply_filters('upk_column_size', ''); |
| 101 | 102 | |
| 102 | 103 | $this->add_responsive_control( |
| 103 | 104 | 'columns', |
| @@ -190,8 +191,9 @@ | ||
| 190 | 191 | $this->add_group_control( |
| 191 | 192 | Group_Control_Image_Size::get_type(), |
| 192 | 193 | [ |
| 193 | 194 | 'name' => 'primary_thumbnail', |
| 195 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 194 | 196 | 'exclude' => ['custom'], |
| 195 | 197 | 'default' => 'medium', |
| 196 | 198 | ] |
| 197 | 199 | ); |
| @@ -1277,9 +1279,9 @@ | ||
| 1277 | 1279 | |
| 1278 | 1280 | <span class="author-depertment"> |
| 1279 | 1281 | <?php |
| 1280 | 1282 | $aid = get_the_author_meta('ID'); |
| 1281 | - echo ucwords(get_user_role($aid)); | |
| 1283 | + echo esc_html( get_user_role( $aid ) ); | |
| 1282 | 1284 | ?> |
| 1283 | 1285 | </span> |
| 1284 | 1286 | </div> |
| 1285 | 1287 | </div> |
| @@ -1294,9 +1296,9 @@ | ||
| 1294 | 1296 | <?php $this->render_date(); ?> |
| 1295 | 1297 | |
| 1296 | 1298 | <?php if (_is_upk_pro_activated()) : |
| 1297 | 1299 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1298 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1300 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1299 | 1301 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1300 | 1302 | </div> |
| 1301 | 1303 | <?php endif; ?> |
| 1302 | 1304 | <?php endif; ?> |
| @@ -1325,9 +1327,9 @@ | ||
| 1325 | 1327 | <?php $this->render_date(); ?> |
| 1326 | 1328 | |
| 1327 | 1329 | <?php if (_is_upk_pro_activated()) : |
| 1328 | 1330 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1329 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1331 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1330 | 1332 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1331 | 1333 | </div> |
| 1332 | 1334 | <?php endif; ?> |
| 1333 | 1335 | <?php endif; ?> |