Avoid printing a possible HTML element. fixes #24813.
git-svn-id: https://develop.svn.wordpress.org/trunk@25809 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fe9b7468d
commit
d1e1139956
@ -72,7 +72,7 @@ function wp_add_inline_style( $handle, $data ) {
|
||||
}
|
||||
|
||||
if ( false !== stripos( $data, '</style>' ) ) {
|
||||
_doing_it_wrong( __FUNCTION__, 'Do not pass <style> tags to wp_add_inline_style()', '3.7' );
|
||||
_doing_it_wrong( __FUNCTION__, 'Do not pass style tags to wp_add_inline_style().', '3.7' );
|
||||
$data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user