Avoid printing a possible HTML element. fixes #24813.
Built from https://develop.svn.wordpress.org/trunk@25809 git-svn-id: http://core.svn.wordpress.org/trunk@25721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
34edaed317
commit
b02867a1c4
|
@ -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