| @@ -97,8 +97,9 @@ | ||
| 97 | 97 | ], |
| 98 | 98 | ] |
| 99 | 99 | ); |
| 100 | 100 | |
| 101 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration. | |
| 101 | 102 | $column_size = apply_filters('upk_column_size', ''); |
| 102 | 103 | |
| 103 | 104 | $this->add_responsive_control( |
| 104 | 105 | 'columns', |
| @@ -211,8 +212,9 @@ | ||
| 211 | 212 | $this->add_group_control( |
| 212 | 213 | Group_Control_Image_Size::get_type(), |
| 213 | 214 | [ |
| 214 | 215 | 'name' => 'primary_thumbnail', |
| 216 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 215 | 217 | 'exclude' => ['custom'], |
| 216 | 218 | 'default' => 'medium', |
| 217 | 219 | ] |
| 218 | 220 | ); |
| @@ -578,9 +580,9 @@ | ||
| 578 | 580 | [ |
| 579 | 581 | 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'), |
| 580 | 582 | 'type' => Controls_Manager::SWITCHER, |
| 581 | 583 | // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag |
| 582 | - 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1s look here %2s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 584 | + 'description' => sprintf(__('This feature will not work in the Firefox browser untill you enable browser compatibility so please %1$s look here %2$s', 'ultimate-post-kit'), '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility" target="_blank">', '</a>'), | |
| 583 | 585 | 'default' => 'yes', |
| 584 | 586 | 'condition' => [ |
| 585 | 587 | 'content_on_image' => 'yes' |
| 586 | 588 | ] |
| @@ -648,8 +650,9 @@ | ||
| 648 | 650 | Group_Control_Background::get_type(), |
| 649 | 651 | [ |
| 650 | 652 | 'name' => 'itam_content_background', |
| 651 | 653 | 'selector' => '{{WRAPPER}}.upk-content-on-image-yes .upk-alter-grid .upk-content', |
| 654 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 652 | 655 | 'exclude' => ['image'], |
| 653 | 656 | 'condition' => [ |
| 654 | 657 | 'content_on_image' => 'yes' |
| 655 | 658 | ] |
| @@ -712,8 +715,9 @@ | ||
| 712 | 715 | Group_Control_Background::get_type(), |
| 713 | 716 | [ |
| 714 | 717 | 'name' => 'itam_content_hover_background', |
| 715 | 718 | 'selector' => '{{WRAPPER}}.upk-content-on-image-yes .upk-alter-grid .upk-item:hover .upk-content', |
| 719 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 716 | 720 | 'exclude' => ['image'], |
| 717 | 721 | 'condition' => [ |
| 718 | 722 | 'content_on_image' => 'yes' |
| 719 | 723 | ] |
| @@ -1679,9 +1683,9 @@ | ||
| 1679 | 1683 | |
| 1680 | 1684 | <?php if ($settings['show_author'] or $settings['show_date'] or $settings['show_reading_time']) : ?> |
| 1681 | 1685 | <div class="upk-meta"> |
| 1682 | 1686 | <?php if ($settings['show_author']) : ?> |
| 1683 | - <div class="upk-blog-author" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1687 | + <div class="upk-blog-author" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1684 | 1688 | <a |
| 1685 | 1689 | class="author-name" |
| 1686 | 1690 | href="<?php echo esc_url( get_author_posts_url(get_the_author_meta('ID')) ); ?>" |
| 1687 | 1691 | aria-label="<?php echo esc_attr( 'View all posts by ' . get_the_author() ); ?>" |
| @@ -1690,9 +1694,9 @@ | ||
| 1690 | 1694 | </a> |
| 1691 | 1695 | </div> |
| 1692 | 1696 | <?php endif; ?> |
| 1693 | 1697 | <?php if ('yes' === $settings['show_date']) : ?> |
| 1694 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1698 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1695 | 1699 | <?php $this->render_date(); ?> |
| 1696 | 1700 | </div> |
| 1697 | 1701 | <?php endif; ?> |
| 1698 | 1702 | |
| @@ -1697,9 +1701,9 @@ | ||
| 1697 | 1701 | <?php endif; ?> |
| 1698 | 1702 | |
| 1699 | 1703 | <?php if (_is_upk_pro_activated()) : |
| 1700 | 1704 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1701 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1705 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1702 | 1706 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1703 | 1707 | </div> |
| 1704 | 1708 | <?php endif; ?> |
| 1705 | 1709 | <?php endif; ?> |