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/crystal-slider/widgets/crystal-slider.php +13 -8 4.1.10 → 4.5.6 View file →
@@ -151,8 +151,9 @@
151 151 $this->add_group_control(
152 152 Group_Control_Image_Size::get_type(),
153 153 [
154 154 'name' => 'primary_thumbnail',
155 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
155 156 'exclude' => ['custom'],
156 157 'default' => 'full',
157 158 ]
158 159 );
@@ -290,10 +291,13 @@
290 291
291 292 $this->add_control(
292 293 'pauseonhover',
293 294 [
294 - 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'),
295 - 'type' => Controls_Manager::SWITCHER,
295 + 'label' => esc_html__('Pause on Hover', 'ultimate-post-kit'),
296 + 'type' => Controls_Manager::SWITCHER,
297 + 'condition' => [
298 + 'autoplay' => 'yes',
299 + ],
296 300 ]
297 301 );
298 302
299 303 $this->add_control(
@@ -1552,9 +1556,10 @@
1552 1556 if (!$this->get_settings('show_title')) {
1553 1557 return;
1554 1558 }
1555 1559
1556 - printf('<%1$s class="upk-title"><a href="%2$s" title="%3$s">%3$s</a></%1$s>', esc_attr(Utils::get_valid_html_tag($settings['title_tags'])), esc_url( get_permalink() ), esc_html( get_the_title() ));
1560 + $title = get_the_title();
1561 + printf('<%1$s class="upk-title"><a href="%2$s" title="%4$s">%3$s</a></%1$s>', esc_attr(Utils::get_valid_html_tag($settings['title_tags'])), esc_url( get_permalink() ), esc_html( $title ), esc_attr( $title ));
1557 1562 }
1558 1563
1559 1564 public function render_category() {
1560 1565
@@ -1562,9 +1567,9 @@
1562 1567 return;
1563 1568 }
1564 1569 ?>
1565 1570 <div class="upk-category" data-swiper-parallax-x="-150" data-swiper-parallax-duration="1000">
1566 - <?php echo upk_get_category($this->get_settings('posts_source')); ?>
1571 + <?php echo wp_kses_post( upk_get_category($this->get_settings('posts_source')) ); ?>
1567 1572 </div>
1568 1573 <?php
1569 1574 }
1570 1575
@@ -1671,12 +1676,12 @@
1671 1676 </div>
1672 1677 <?php if ($settings['show_navigation']) : ?>
1673 1678 <div class="upk-navigation-wrap">
1674 1679 <div class="upk-navigation-prev">
1675 - <i class="upk-icon-arrow-left-<?php echo esc_html($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i>
1680 + <i class="upk-icon-arrow-left-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i>
1676 1681 </div>
1677 1682 <div class="upk-navigation-next">
1678 - <i class="upk-icon-arrow-right-<?php echo esc_html($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i>
1683 + <i class="upk-icon-arrow-right-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i>
1679 1684 </div>
1680 1685 </div>
1681 1686 <?php endif; ?>
1682 1687
@@ -1715,15 +1720,15 @@
1715 1720 <?php if ($settings['show_author']) : ?>
1716 1721 <?php $this->render_author(); ?>
1717 1722 <?php endif; ?>
1718 1723 <?php if ($settings['show_date']) : ?>
1719 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1724 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1720 1725 <?php $this->render_date(); ?>
1721 1726 </div>
1722 1727 <?php endif; ?>
1723 1728 <?php if (_is_upk_pro_activated()) :
1724 1729 if ('yes' === $settings['show_reading_time']) : ?>
1725 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1730 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1726 1731 <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1727 1732 </div>
1728 1733 <?php endif; ?>
1729 1734 <?php endif; ?>