| @@ -131,8 +131,9 @@ | ||
| 131 | 131 | $this->add_group_control( |
| 132 | 132 | Group_Control_Image_Size::get_type(), |
| 133 | 133 | [ |
| 134 | 134 | 'name' => 'primary_thumbnail', |
| 135 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 135 | 136 | 'exclude' => ['custom'], |
| 136 | 137 | 'default' => 'medium', |
| 137 | 138 | ] |
| 138 | 139 | ); |
| @@ -1085,9 +1086,9 @@ | ||
| 1085 | 1086 | $image_src = $image_src[0]; |
| 1086 | 1087 | } |
| 1087 | 1088 | |
| 1088 | 1089 | ?> |
| 1089 | - <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>"> | |
| 1090 | + <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>"> | |
| 1090 | 1091 | <?php |
| 1091 | 1092 | } |
| 1092 | 1093 | |
| 1093 | 1094 | public function render_author() { |
| @@ -1145,9 +1146,9 @@ | ||
| 1145 | 1146 | |
| 1146 | 1147 | <span class="author-depertment"> |
| 1147 | 1148 | <?php |
| 1148 | 1149 | $aid = get_the_author_meta('ID'); |
| 1149 | - echo get_user_role($aid); | |
| 1150 | + echo esc_html( get_user_role( $aid ) ); | |
| 1150 | 1151 | ?> |
| 1151 | 1152 | </span> |
| 1152 | 1153 | </div> |
| 1153 | 1154 | </div> |
| @@ -1162,9 +1163,9 @@ | ||
| 1162 | 1163 | <?php $this->render_date(); ?> |
| 1163 | 1164 | |
| 1164 | 1165 | <?php if (_is_upk_pro_activated()) : |
| 1165 | 1166 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1166 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1167 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1167 | 1168 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1168 | 1169 | </div> |
| 1169 | 1170 | <?php endif; ?> |
| 1170 | 1171 | <?php endif; ?> |