| @@ -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 | ); |
| @@ -186,8 +187,11 @@ | ||
| 186 | 187 | ], |
| 187 | 188 | 'default' => [ |
| 188 | 189 | 'size' => 6, |
| 189 | 190 | ], |
| 191 | + 'condition' => [ | |
| 192 | + 'posts_source!' => 'current_query', | |
| 193 | + ] | |
| 190 | 194 | ] |
| 191 | 195 | ); |
| 192 | 196 | |
| 193 | 197 | $this->register_query_builder_controls(); |
| @@ -1141,9 +1145,8 @@ | ||
| 1141 | 1145 | $default = $this->getGroupControlQueryArgs(); |
| 1142 | 1146 | $args = []; |
| 1143 | 1147 | if ($posts_per_page) { |
| 1144 | 1148 | $args['posts_per_page'] = $posts_per_page; |
| 1145 | - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page')); | |
| 1146 | 1149 | } |
| 1147 | 1150 | $args = array_merge($default, $args); |
| 1148 | 1151 | $this->_query = new WP_Query($args); |
| 1149 | 1152 | } |
| @@ -1206,9 +1209,9 @@ | ||
| 1206 | 1209 | |
| 1207 | 1210 | <?php if ($settings['show_author'] or $settings['show_date'] or $settings['show_reading_time']) : ?> |
| 1208 | 1211 | <div class="upk-meta"> |
| 1209 | 1212 | <?php if ($settings['show_author']) : ?> |
| 1210 | - <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']); ?>"> | |
| 1211 | 1214 | <a |
| 1212 | 1215 | class="author-name" |
| 1213 | 1216 | href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID')) ); ?>" |
| 1214 | 1217 | aria-label="<?php echo esc_attr( 'View all posts by ' . get_the_author() ); ?>" |
| @@ -1217,9 +1220,9 @@ | ||
| 1217 | 1220 | </a> |
| 1218 | 1221 | </div> |
| 1219 | 1222 | <?php endif; ?> |
| 1220 | 1223 | <?php if ('yes' === $settings['show_date']) : ?> |
| 1221 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1224 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1222 | 1225 | <?php $this->render_date(); ?> |
| 1223 | 1226 | </div> |
| 1224 | 1227 | <?php endif; ?> |
| 1225 | 1228 | |
| @@ -1224,9 +1227,9 @@ | ||
| 1224 | 1227 | <?php endif; ?> |
| 1225 | 1228 | |
| 1226 | 1229 | <?php if (_is_upk_pro_activated()) : |
| 1227 | 1230 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1228 | - <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']); ?>"> | |
| 1229 | 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' ) ); ?> |
| 1230 | 1233 | </div> |
| 1231 | 1234 | <?php endif; ?> |
| 1232 | 1235 | <?php endif; ?> |