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 +13 -9 4.0.9 → 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
@@ -830,11 +834,11 @@
830 834 public function query_posts($posts_per_page)
831 835 {
832 836
833 837 $default = $this->getGroupControlQueryArgs();
838 + $args = [];
834 839 if ($posts_per_page) {
835 840 $args['posts_per_page'] = $posts_per_page;
836 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
837 841 }
838 842 $args = array_merge($default, $args);
839 843 $this->_query = new WP_Query($args);
840 844 }
@@ -844,13 +848,13 @@
844 848
845 849 if (!$this->get_settings('show_comments')) {
846 850 return;
847 851 }
848 -?>
852 + ?>
849 853
850 854 <div class="upk-comments upk-flex upk-flex-middle">
851 - <i class="upk-icon-post-comments"></i>
852 - <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>
853 857 </div>
854 858
855 859 <?php
856 860 }
@@ -862,9 +866,9 @@
862 866
863 867 ?>
864 868 <div <?php $this->print_render_attribute_string('carousel'); ?>>
865 869 <div class="upk-post-wrapper">
866 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
870 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
867 871 <div class="swiper-wrapper">
868 872 <?php
869 873 }
870 874
@@ -892,14 +896,14 @@
892 896 <div class="upk-meta upk-flex-inline upk-flex-middle">
893 897 <?php $this->render_date(); ?>
894 898 <?php if (_is_upk_pro_activated()) :
895 899 if ('yes' === $settings['show_reading_time']) : ?>
896 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
897 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
900 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
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' ) ); ?>
898 902 </div>
899 903 <?php endif; ?>
900 904 <?php endif; ?>
901 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
905 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
902 906 <?php $this->render_comments($post_id); ?>
903 907 </div>
904 908 </div>
905 909 <?php endif; ?>