Fix typo in style filter. props miqrogroove
Merges [30425] to the 3.7 branch. Built from https://develop.svn.wordpress.org/branches/3.7@30429 git-svn-id: http://core.svn.wordpress.org/branches/3.7@30424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61d9bd544b
commit
eeb9290b3b
|
@ -1405,7 +1405,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
||||||
$css = wp_kses_no_null($css);
|
$css = wp_kses_no_null($css);
|
||||||
$css = str_replace(array("\n","\r","\t"), '', $css);
|
$css = str_replace(array("\n","\r","\t"), '', $css);
|
||||||
|
|
||||||
if ( preg_match( '%[\\(&=}]|/\*%', $css ) ) // remove any inline css containing \ ( & } = or comments
|
if ( preg_match( '%[\\\\(&=}]|/\*%', $css ) ) // remove any inline css containing \ ( & } = or comments
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
$css_array = explode( ';', trim( $css ) );
|
$css_array = explode( ';', trim( $css ) );
|
||||||
|
|
Loading…
Reference in New Issue