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/amox-carousel/widgets/amox-carousel.php +10 -7 4.1.2 → 4.5.6 View file →
@@ -155,8 +155,9 @@
155 155 $this->add_group_control(
156 156 Group_Control_Image_Size::get_type(),
157 157 [
158 158 'name' => 'primary_thumbnail',
159 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
159 160 'exclude' => ['custom'],
160 161 'default' => 'medium',
161 162 ]
162 163 );
@@ -237,8 +238,11 @@
237 238 ],
238 239 'default' => [
239 240 'size' => 6,
240 241 ],
242 + 'condition' => [
243 + 'posts_source!' => 'current_query',
244 + ]
241 245 ]
242 246 );
243 247
244 248 $this->register_query_builder_controls();
@@ -247,9 +251,9 @@
247 251
248 252 $this->start_controls_section(
249 253 'section_content_additional',
250 254 [
251 - 'label' => esc_html__('Additional', 'ultimate-post-kit'),
255 + 'label' => esc_html__('Additional Options', 'ultimate-post-kit'),
252 256 ]
253 257 );
254 258
255 259 //Global Title Controls
@@ -833,9 +837,8 @@
833 837 $default = $this->getGroupControlQueryArgs();
834 838 $args = [];
835 839 if ($posts_per_page) {
836 840 $args['posts_per_page'] = $posts_per_page;
837 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
838 841 }
839 842 $args = array_merge($default, $args);
840 843 $this->_query = new WP_Query($args);
841 844 }
@@ -845,13 +848,13 @@
845 848
846 849 if (!$this->get_settings('show_comments')) {
847 850 return;
848 851 }
849 -?>
852 + ?>
850 853
851 854 <div class="upk-comments upk-flex upk-flex-middle">
852 - <i class="upk-icon-post-comments"></i>
853 - <span><?php echo get_comments_number($id) ?></span>
855 + <i class="upk-icon-post-comments" aria-hidden="true"></i>
856 + <span><?php echo esc_html( $this->upk_get_localized_comment_count( $id ) ); ?></span>
854 857 </div>
855 858
856 859 <?php
857 860 }
@@ -893,14 +896,14 @@
893 896 <div class="upk-meta upk-flex-inline upk-flex-middle">
894 897 <?php $this->render_date(); ?>
895 898 <?php if (_is_upk_pro_activated()) :
896 899 if ('yes' === $settings['show_reading_time']) : ?>
897 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
900 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
898 901 <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
899 902 </div>
900 903 <?php endif; ?>
901 904 <?php endif; ?>
902 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
905 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
903 906 <?php $this->render_comments($post_id); ?>
904 907 </div>
905 908 </div>
906 909 <?php endif; ?>