PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | modules/elite-carousel/widgets/elite-carousel.php +7 -4 4.1.1 → 4.5.6 View file →
@@ -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 );
@@ -178,8 +179,11 @@
178 179 ],
179 180 'default' => [
180 181 'size' => 6,
181 182 ],
183 + 'condition' => [
184 + 'posts_source!' => 'current_query',
185 + ]
182 186 ]
183 187 );
184 188
185 189 $this->register_query_builder_controls();
@@ -1065,9 +1069,8 @@
1065 1069 $default = $this->getGroupControlQueryArgs();
1066 1070 $args = [];
1067 1071 if ($posts_per_page) {
1068 1072 $args['posts_per_page'] = $posts_per_page;
1069 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
1070 1073 }
1071 1074 $args = array_merge($default, $args);
1072 1075 $this->_query = new WP_Query($args);
1073 1076 }
@@ -1083,9 +1086,9 @@
1083 1086 $image_src = $image_src[0];
1084 1087 }
1085 1088
1086 1089 ?>
1087 - <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()); ?>">
1088 1091 <?php
1089 1092 }
1090 1093
1091 1094 public function render_author() {
@@ -1143,9 +1146,9 @@
1143 1146
1144 1147 <span class="author-depertment">
1145 1148 <?php
1146 1149 $aid = get_the_author_meta('ID');
1147 - echo get_user_role($aid);
1150 + echo esc_html( get_user_role( $aid ) );
1148 1151 ?>
1149 1152 </span>
1150 1153 </div>
1151 1154 </div>
@@ -1160,9 +1163,9 @@
1160 1163 <?php $this->render_date(); ?>
1161 1164
1162 1165 <?php if (_is_upk_pro_activated()) :
1163 1166 if ('yes' === $settings['show_reading_time']) : ?>
1164 - <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']); ?>">
1165 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' ) ); ?>
1166 1169 </div>
1167 1170 <?php endif; ?>
1168 1171 <?php endif; ?>