| @@ -96,8 +96,9 @@ | ||
| 96 | 96 | ], |
| 97 | 97 | ] |
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- established hook name relied on across the plugin family; renaming would break integration. | |
| 100 | 101 | $column_size = apply_filters('upk_column_size', ''); |
| 101 | 102 | |
| 102 | 103 | $this->add_responsive_control( |
| 103 | 104 | 'columns', |
| @@ -236,8 +237,9 @@ | ||
| 236 | 237 | $this->add_group_control( |
| 237 | 238 | Group_Control_Image_Size::get_type(), |
| 238 | 239 | [ |
| 239 | 240 | 'name' => 'primary_thumbnail', |
| 241 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 240 | 242 | 'exclude' => ['custom'], |
| 241 | 243 | 'default' => 'medium', |
| 242 | 244 | ] |
| 243 | 245 | ); |
| @@ -404,9 +406,9 @@ | ||
| 404 | 406 | [ |
| 405 | 407 | 'label' => esc_html__('Glassmorphism', 'ultimate-post-kit'), |
| 406 | 408 | 'type' => Controls_Manager::SWITCHER, |
| 407 | 409 | // translators: %1s: Opening anchor tag with link to MDN backdrop-filter documentation, %2s: Closing anchor tag |
| 408 | - '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>'), | |
| 410 | + '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>'), | |
| 409 | 411 | ] |
| 410 | 412 | ); |
| 411 | 413 | |
| 412 | 414 | $this->add_control( |
| @@ -1000,14 +1002,14 @@ | ||
| 1000 | 1002 | |
| 1001 | 1003 | <?php if ($settings['show_author'] or $settings['show_date'] or $settings['show_reading_time']) : ?> |
| 1002 | 1004 | <div class="upk-meta"> |
| 1003 | 1005 | <?php $this->render_author(); ?> |
| 1004 | - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1006 | + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1005 | 1007 | <?php $this->render_date(); ?> |
| 1006 | 1008 | </div> |
| 1007 | 1009 | <?php if (_is_upk_pro_activated()) : |
| 1008 | 1010 | if ('yes' === $settings['show_reading_time']) : ?> |
| 1009 | - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>"> | |
| 1011 | + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>"> | |
| 1010 | 1012 | <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?> |
| 1011 | 1013 | </div> |
| 1012 | 1014 | <?php endif; ?> |
| 1013 | 1015 | <?php endif; ?> |