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/elite-carousel/widgets/elite-carousel.php +11 -7 4.0.9 → 4.5.6 View file →
@@ -131,8 +131,9 @@
131 131 $this->add_group_control(
132 132 Group_Control_Image_Size::get_type(),
133 133 [
134 134 'name' => 'primary_thumbnail',
135 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
135 136 'exclude' => ['custom'],
136 137 'default' => 'medium',
137 138 ]
138 139 );
@@ -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
@@ -1062,11 +1066,11 @@
1062 1066 */
1063 1067 public function query_posts($posts_per_page) {
1064 1068
1065 1069 $default = $this->getGroupControlQueryArgs();
1070 + $args = [];
1066 1071 if ($posts_per_page) {
1067 1072 $args['posts_per_page'] = $posts_per_page;
1068 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
1069 1073 }
1070 1074 $args = array_merge($default, $args);
1071 1075 $this->_query = new WP_Query($args);
1072 1076 }
@@ -1082,9 +1086,9 @@
1082 1086 $image_src = $image_src[0];
1083 1087 }
1084 1088
1085 1089 ?>
1086 - <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_html(get_the_title()); ?>">
1090 + <img class="upk-blog-image" src="<?php echo esc_url($image_src); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
1087 1091 <?php
1088 1092 }
1089 1093
1090 1094 public function render_author() {
@@ -1106,9 +1110,9 @@
1106 1110
1107 1111 ?>
1108 1112 <div <?php $this->print_render_attribute_string('carousel'); ?>>
1109 1113 <div class="upk-post-carousel-wrap">
1110 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
1114 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
1111 1115 <div class="swiper-wrapper">
1112 1116 <?php
1113 1117 }
1114 1118
@@ -1142,9 +1146,9 @@
1142 1146
1143 1147 <span class="author-depertment">
1144 1148 <?php
1145 1149 $aid = get_the_author_meta('ID');
1146 - echo get_user_role($aid);
1150 + echo esc_html( get_user_role( $aid ) );
1147 1151 ?>
1148 1152 </span>
1149 1153 </div>
1150 1154 </div>
@@ -1159,10 +1163,10 @@
1159 1163 <?php $this->render_date(); ?>
1160 1164
1161 1165 <?php if (_is_upk_pro_activated()) :
1162 1166 if ('yes' === $settings['show_reading_time']) : ?>
1163 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1164 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
1167 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1168 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1165 1169 </div>
1166 1170 <?php endif; ?>
1167 1171 <?php endif; ?>
1168 1172 </div>