X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..refs/tags/wordpress-3.3.1-scripts:/wp-includes/kses.php diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 3a4da1e3..d76b3448 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -500,7 +500,8 @@ if ( ! CUSTOM_TAGS ) { * @return string Filtered content with only allowed HTML elements */ function wp_kses($string, $allowed_html, $allowed_protocols = array ()) { - $allowed_protocols = wp_parse_args( $allowed_protocols, apply_filters('kses_allowed_protocols', array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn') )); + if ( empty( $allowed_protocols ) ) + $allowed_protocols = wp_allowed_protocols(); $string = wp_kses_no_null($string); $string = wp_kses_js_entities($string); $string = wp_kses_normalize_entities($string); @@ -842,7 +843,7 @@ function wp_kses_hair($attr, $allowed_protocols) { * Performs different checks for attribute values. * * The currently implemented checks are "maxlen", "minlen", "maxval", "minval" - * and "valueless" with even more checks to come soon. + * and "valueless". * * @since 1.0.0 * @@ -887,7 +888,7 @@ function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { break; case 'minval' : - # The minval check checks that the attribute value is a positive integer, + # The minval check makes sure that the attribute value is a positive integer, # and that it is not smaller than the given value. if (!preg_match('/^\s{0,6}[0-9]{1,6}\s{0,6}$/', $value)) @@ -897,7 +898,7 @@ function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { break; case 'valueless' : - # The valueless check checks if the attribute has a value + # The valueless check makes sure if the attribute has a value # (like ) or not (