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/maple-carousel/widgets/maple-carousel.php +10 -6 4.0.9 → 4.5.6 View file →
@@ -148,8 +148,9 @@
148 148 $this->add_group_control(
149 149 Group_Control_Image_Size::get_type(),
150 150 [
151 151 'name' => 'primary_thumbnail',
152 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
152 153 'exclude' => ['custom'],
153 154 'default' => 'medium',
154 155 ]
155 156 );
@@ -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();
@@ -188,9 +192,9 @@
188 192
189 193 $this->start_controls_section(
190 194 'section_content_additional',
191 195 [
192 - 'label' => esc_html__('Additional', 'ultimate-post-kit'),
196 + 'label' => esc_html__('Additional Options', 'ultimate-post-kit'),
193 197 ]
194 198 );
195 199
196 200 //Global Title Controls
@@ -1090,11 +1094,11 @@
1090 1094 */
1091 1095 public function query_posts($posts_per_page) {
1092 1096
1093 1097 $default = $this->getGroupControlQueryArgs();
1098 + $args = [];
1094 1099 if ($posts_per_page) {
1095 1100 $args['posts_per_page'] = $posts_per_page;
1096 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
1097 1101 }
1098 1102 $args = array_merge($default, $args);
1099 1103 $this->_query = new WP_Query($args);
1100 1104 }
@@ -1160,9 +1164,9 @@
1160 1164
1161 1165 ?>
1162 1166 <div <?php $this->print_render_attribute_string('carousel'); ?>>
1163 1167 <div class="upk-post-grid">
1164 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
1168 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
1165 1169 <div class="swiper-wrapper">
1166 1170 <?php
1167 1171 }
1168 1172
@@ -1194,9 +1198,9 @@
1194 1198 <div class="upk-meta">
1195 1199 <?php $this->render_author(); ?>
1196 1200
1197 1201 <?php if ($settings['show_date'] == 'yes') : ?>
1198 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1202 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1199 1203 <?php $this->render_date(); ?>
1200 1204 </div>
1201 1205 <?php endif; ?>
1202 1206
@@ -1201,10 +1205,10 @@
1201 1205 <?php endif; ?>
1202 1206
1203 1207 <?php if (_is_upk_pro_activated()) :
1204 1208 if ('yes' === $settings['show_reading_time']) : ?>
1205 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1206 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
1209 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1210 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1207 1211 </div>
1208 1212 <?php endif; ?>
1209 1213 <?php endif; ?>
1210 1214 </div>