PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
← All changes | includes/class-ph-salient.php +3 -1 2.2.62.3.0 View file →
@@ -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