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 +6 -3 4.1.0 → 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();
@@ -1093,9 +1097,8 @@
1093 1097 $default = $this->getGroupControlQueryArgs();
1094 1098 $args = [];
1095 1099 if ($posts_per_page) {
1096 1100 $args['posts_per_page'] = $posts_per_page;
1097 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
1098 1101 }
1099 1102 $args = array_merge($default, $args);
1100 1103 $this->_query = new WP_Query($args);
1101 1104 }
@@ -1195,9 +1198,9 @@
1195 1198 <div class="upk-meta">
1196 1199 <?php $this->render_author(); ?>
1197 1200
1198 1201 <?php if ($settings['show_date'] == 'yes') : ?>
1199 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1202 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1200 1203 <?php $this->render_date(); ?>
1201 1204 </div>
1202 1205 <?php endif; ?>
1203 1206
@@ -1202,9 +1205,9 @@
1202 1205 <?php endif; ?>
1203 1206
1204 1207 <?php if (_is_upk_pro_activated()) :
1205 1208 if ('yes' === $settings['show_reading_time']) : ?>
1206 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1209 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1207 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' ) ); ?>
1208 1211 </div>
1209 1212 <?php endif; ?>
1210 1213 <?php endif; ?>