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/paradox-slider/widgets/paradox-slider.php +14 -7 4.0.9 → 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' => 'full',
154 155 ]
155 156 );
@@ -234,8 +235,11 @@
234 235 ],
235 236 'default' => [
236 237 'size' => 3,
237 238 ],
239 + 'condition' => [
240 + 'posts_source!' => 'current_query',
241 + ]
238 242 ]
239 243 );
240 244
241 245 $this->register_query_builder_controls();
@@ -443,10 +447,13 @@
443 447
444 448 $this->add_control(
445 449 'pauseonhover',
446 450 [
447 - 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ),
448 - 'type' => Controls_Manager::SWITCHER,
451 + 'label' => esc_html__( 'Pause on Hover', 'ultimate-post-kit' ),
452 + 'type' => Controls_Manager::SWITCHER,
453 + 'condition' => [
454 + 'autoplay' => 'yes',
455 + ],
449 456 ]
450 457 );
451 458
452 459 $this->add_control(
@@ -2111,11 +2118,11 @@
2111 2118 */
2112 2119 public function query_posts( $posts_per_page ) {
2113 2120
2114 2121 $default = $this->getGroupControlQueryArgs();
2122 + $args = [];
2115 2123 if ( $posts_per_page ) {
2116 2124 $args['posts_per_page'] = $posts_per_page;
2117 - // $args['paged'] = max( 1, get_query_var( 'paged' ), get_query_var( 'page' ) );
2118 2125 }
2119 2126 $args = array_merge( $default, $args );
2120 2127 $this->_query = new WP_Query( $args );
2121 2128 }
@@ -2142,9 +2149,9 @@
2142 2149
2143 2150 <div class="upk-author-role">
2144 2151 <?php
2145 2152 $aid = get_the_author_meta('ID');
2146 - echo get_user_role($aid);
2153 + echo esc_html( get_user_role( $aid ) );
2147 2154 ?>
2148 2155 </div>
2149 2156 </div>
2150 2157 </div>
@@ -2222,9 +2229,9 @@
2222 2229
2223 2230 ?>
2224 2231 <div <?php $this->print_render_attribute_string( 'paradox-slider' ); ?>>
2225 2232 <div class="upk-wrapper">
2226 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
2233 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
2227 2234 <div class="swiper-wrapper">
2228 2235 <?php
2229 2236 }
2230 2237
@@ -2384,10 +2391,10 @@
2384 2391 <div class="upk-meta upk-flex upk-flex-middle">
2385 2392 <?php $this->render_date(); ?>
2386 2393 <?php if (_is_upk_pro_activated()) :
2387 2394 if ('yes' === $settings['show_reading_time']) : ?>
2388 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
2389 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
2395 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
2396 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
2390 2397 </div>
2391 2398 <?php endif; ?>
2392 2399 <?php endif; ?>
2393 2400 </div>