| @@ -86,11 +86,13 @@ | ||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | new PH_Salient(); |
| 89 | 89 | |
| 90 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- Legacy public global helper ph_extract_font_style_from_salient_font_container; the established callable name is part of the plugin/extension API and must remain stable. | |
| 90 | 91 | function ph_extract_font_style_from_salient_font_container( $font_container = '' ) |
| 91 | 92 | { |
| 92 | 93 | $style = ''; |
| 94 | + $styles = array(); | |
| 93 | 95 | |
| 94 | 96 | if ( empty($font_container) || !function_exists('vc_parse_multi_attribute') ) |
| 95 | 97 | { |
| 96 | 98 | return $style; |
| @@ -123,9 +125,9 @@ | ||
| 123 | 125 | } |
| 124 | 126 | } |
| 125 | 127 | |
| 126 | 128 | if ( ! empty( $styles ) ) { |
| 127 | - $style = 'style="' . esc_attr( implode( ';', $styles ) ) . '"'; | |
| 129 | + $style = 'style="' . esc_attr( safecss_filter_attr( implode( ';', $styles ) ) ) . '"'; | |
| 128 | 130 | } else { |
| 129 | 131 | $style = ''; |
| 130 | 132 | } |
| 131 | 133 | |