| @@ -650,8 +650,9 @@ | ||
| 650 | 650 | [ |
| 651 | 651 | 'name' => 'typography', |
| 652 | 652 | 'label' => esc_html__( 'Typography', 'ultimate-post-kit' ), |
| 653 | 653 | 'selector' => '{{WRAPPER}} .upk-social-share-title, {{WRAPPER}} .upk-ss-counter', |
| 654 | + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour. | |
| 654 | 655 | 'exclude' => [ 'line_height' ], |
| 655 | 656 | ] |
| 656 | 657 | ); |
| 657 | 658 | |
| @@ -842,11 +843,11 @@ | ||
| 842 | 843 | [ |
| 843 | 844 | 'social-attrs' => [ |
| 844 | 845 | 'class' => [ |
| 845 | 846 | 'upk-ss-btn', |
| 846 | - 'upk-ss-' . $social_name | |
| 847 | + 'upk-ss-' . sanitize_html_class( $social_name ), | |
| 847 | 848 | ], |
| 848 | - 'data-social' => $social_name, | |
| 849 | + 'data-social' => esc_attr( $social_name ), | |
| 849 | 850 | ] |
| 850 | 851 | ], '', '', true |
| 851 | 852 | ); |
| 852 | 853 | |
| @@ -854,9 +855,9 @@ | ||
| 854 | 855 | <div class="upk-social-share-item upk-ep-grid-item"> |
| 855 | 856 | <div <?php $this->print_render_attribute_string( 'social-attrs' ); ?>> |
| 856 | 857 | <?php if ( 'icon' === $settings['view'] || 'icon-text' === $settings['view'] ) : ?> |
| 857 | 858 | <span class="upk-ss-icon"> |
| 858 | - <i class="<?php echo self::get_social_media_class( $social_name ); ?>"></i> | |
| 859 | + <i class="<?php echo esc_attr( self::get_social_media_class( $social_name ) ); ?>"></i> | |
| 859 | 860 | </span> |
| 860 | 861 | <?php endif; ?> |
| 861 | 862 | <?php if ( $show_text || $has_counter ) : ?> |
| 862 | 863 | <div class="upk-social-share-text upk-inline"> |
| @@ -861,9 +862,9 @@ | ||
| 861 | 862 | <?php if ( $show_text || $has_counter ) : ?> |
| 862 | 863 | <div class="upk-social-share-text upk-inline"> |
| 863 | 864 | <?php if ( 'icon-text' === $settings['view'] || 'text' === $settings['view'] ) : ?> |
| 864 | 865 | <span class="upk-social-share-title"> |
| 865 | - <?php echo $button['text'] ? esc_html($button['text']) : Module::get_social_media( $social_name )['title']; ?> | |
| 866 | + <?php echo $button['text'] ? esc_html($button['text']) : esc_html( Module::get_social_media( $social_name )['title'] ); ?> | |
| 866 | 867 | </span> |
| 867 | 868 | <?php endif; ?> |
| 868 | 869 | <?php if ( $has_counter ) : ?> |
| 869 | 870 | <span class="upk-social-share-counter" data-counter="<?php echo esc_attr($social_name); ?>"></span> |