Fix deprecated arg. in safecss_filter_attr(), for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de15aa372d
commit
49f9fb716c
|
@ -536,7 +536,7 @@ function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {
|
||||||
if ( $arreach['name'] == 'style' ) {
|
if ( $arreach['name'] == 'style' ) {
|
||||||
$orig_value = $arreach['value'];
|
$orig_value = $arreach['value'];
|
||||||
|
|
||||||
$value = safecss_filter_attr($orig_value, $element);
|
$value = safecss_filter_attr($orig_value);
|
||||||
|
|
||||||
if ( empty($value) )
|
if ( empty($value) )
|
||||||
continue;
|
continue;
|
||||||
|
@ -1148,7 +1148,7 @@ function kses_init() {
|
||||||
add_action('init', 'kses_init');
|
add_action('init', 'kses_init');
|
||||||
add_action('set_current_user', 'kses_init');
|
add_action('set_current_user', 'kses_init');
|
||||||
|
|
||||||
function safecss_filter_attr( $css, $element ) {
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue