if ( ! is_array( $protocols ) )
$protocols = wp_allowed_protocols();
- if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
+ $good_protocol_url = wp_kses_bad_protocol( $url, $protocols );
+ if ( strtolower( $good_protocol_url ) != strtolower( $url ) )
return '';
- return apply_filters('clean_url', $url, $original_url, $_context);
+ return apply_filters('clean_url', $good_protocol_url, $original_url, $_context);
}
/**
case 'illegal_names':
if ( ! is_array( $value ) )
- $value = explode( "\n", $value );
+ $value = explode( ' ', $value );
$value = array_values( array_filter( array_map( 'trim', $value ) ) );