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/buzz-list-carousel/widgets/buzz-list-carousel.php +16 -13 4.0.9 → 4.5.6 View file →
@@ -113,8 +113,9 @@
113 113 $this->add_group_control(
114 114 Group_Control_Image_Size::get_type(),
115 115 [
116 116 'name' => 'primary_thumbnail',
117 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
117 118 'exclude' => ['custom'],
118 119 'default' => 'medium',
119 120 ]
120 121 );
@@ -195,9 +196,9 @@
195 196
196 197 $this->add_responsive_control(
197 198 'content_vertical_align',
198 199 [
199 - 'label' => esc_html__('Vertical Align', 'ultimate-post-kit') . BDTUPK_NC,
200 + 'label' => esc_html__('Vertical Align', 'ultimate-post-kit'),
200 201 'type' => Controls_Manager::CHOOSE,
201 202 'options' => [
202 203 'flex-start' => [
203 204 'title' => esc_html__('Top', 'ultimate-post-kit'),
@@ -224,9 +225,9 @@
224 225 // Query Settings
225 226 $this->start_controls_section(
226 227 'section_post_query_builder',
227 228 [
228 - 'label' => __('Query', 'ultimate-post-kit') . BDTUPK_NC,
229 + 'label' => __('Query', 'ultimate-post-kit'),
229 230 'tab' => Controls_Manager::TAB_CONTENT,
230 231 ]
231 232 );
232 233
@@ -243,8 +244,11 @@
243 244 ],
244 245 'default' => [
245 246 'size' => 6,
246 247 ],
248 + 'condition' => [
249 + 'posts_source!' => 'current_query',
250 + ]
247 251 ]
248 252 );
249 253
250 254 $this->register_query_builder_controls();
@@ -882,11 +886,11 @@
882 886 */
883 887 public function query_posts($posts_per_page) {
884 888
885 889 $default = $this->getGroupControlQueryArgs();
890 + $args = [];
886 891 if ($posts_per_page) {
887 892 $args['posts_per_page'] = $posts_per_page;
888 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
889 893 }
890 894 $args = array_merge($default, $args);
891 895 $this->_query = new WP_Query($args);
892 896 }
@@ -899,9 +903,9 @@
899 903 ?>
900 904 <div class="upk-author-wrap">
901 905 <span class="upk-by"><?php echo esc_html_x('by', 'Frontend', 'ultimate-post-kit'); ?></span>
902 906 <a class="upk-author-name" href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID')) ); ?>">
903 - <?php echo esc_html( esc_html( get_the_author() ) ); ?>
907 + <?php echo esc_html( get_the_author() ); ?>
904 908 </a>
905 909 </div>
906 910 <?php
907 911 }
@@ -910,13 +914,12 @@
910 914
911 915 if (!$this->get_settings('show_comments')) {
912 916 return;
913 917 }
914 - ?>
918 + ?>
915 919
916 920 <div class="upk-comments">
917 - <?php echo get_comments_number($id) ?>
918 - <?php echo esc_html_x('Comments', 'Frontend', 'ultimate-post-kit') ?>
921 + <?php echo esc_html( $this->upk_get_formatted_comments_count( $id ) ); ?>
919 922 </div>
920 923
921 924 <?php
922 925 }
@@ -927,9 +930,9 @@
927 930
928 931 ?>
929 932 <div <?php $this->print_render_attribute_string('carousel'); ?>>
930 933 <div class="upk-buzz-wrapper">
931 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
934 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
932 935 <div class="swiper-wrapper">
933 936 <?php
934 937 }
935 938
@@ -947,9 +950,9 @@
947 950 <div class="upk-img-wrap">
948 951 <?php $this->render_image(get_post_thumbnail_id($post_id), $image_size); ?>
949 952 </div>
950 953 <div class="upk-content">
951 - <div class="upk-count"><?php printf("%2d", $slide_index); ?></div>
954 + <div class="upk-count"><?php printf("%2d", esc_attr($slide_index)); ?></div>
952 955 <div class="upk-inner">
953 956 <?php $this->render_category(); ?>
954 957 <?php $this->render_title(substr($this->get_name(), 4)); ?>
955 958 <?php if ($settings['show_author'] or $settings['show_comments'] or $settings['show_date'] or $settings['show_reading_time']) : ?>
@@ -958,9 +961,9 @@
958 961 <?php $this->render_author(); ?>
959 962 <?php endif; ?>
960 963
961 964 <?php if ($settings['show_date']) : ?>
962 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
965 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
963 966 <?php $this->render_date(); ?>
964 967 </div>
965 968 <?php endif; ?>
966 969
@@ -965,16 +968,16 @@
965 968 <?php endif; ?>
966 969
967 970 <?php if (_is_upk_pro_activated()) :
968 971 if ('yes' === $settings['show_reading_time']) : ?>
969 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
970 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
972 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
973 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
971 974 </div>
972 975 <?php endif; ?>
973 976 <?php endif; ?>
974 977
975 978 <?php if ($settings['show_comments']) : ?>
976 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
979 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
977 980 <?php $this->render_comments($post_id); ?>
978 981 </div>
979 982 <?php endif; ?>
980 983