More filters and KSES cleanup.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2005-01-26 22:29:18 +00:00
parent 8d7769dd6b
commit 10792f3274
3 changed files with 10 additions and 5 deletions

View File

@@ -45,8 +45,7 @@ $allowedtags = array(
);
}
function wp_kses($string, $allowed_html, $allowed_protocols =
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',
'gopher', 'mailto'))
array('http', 'https', 'ftp', 'news', 'nntp', 'feed', 'gopher', 'mailto'))
###############################################################################
# This function makes sure that only the allowed HTML element names, attribute
# names and attribute values plus only sane HTML entities will occur in
@@ -556,9 +555,9 @@ function wp_kses_decode_entities($string)
return $string;
} # function wp_kses_decode_entities
function wp_filter_kses($data) {
function wp_filter_kses( $string ) {
global $allowedtags;
return wp_kses($data, $allowedtags);
return wp_kses($string, $allowedtags);
}
?>