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:
Andrew Nacin 2013-10-16 04:45:08 +00:00
parent 0fe9b7468d
commit d1e1139956
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}