Let people override the allowedtags variable.

git-svn-id: https://develop.svn.wordpress.org/trunk@832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-02-05 14:40:32 +00:00
parent 3bd3606aef
commit 1fe76304c9
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
# [kses strips evil scripts!]
// You could override this in your my-hacks.php file
if (defined('CUSTOM_TAGS') && !CUSTOM_TAGS) { // Let's people override the allowed tags in their my-hacks.php
$allowedtags = array(
'a' => array(
'href' => array(),
@ -40,7 +41,7 @@ $allowedtags = array(
// 'u' => array(),
// 'ul' => array(),
);
}
function wp_kses($string, $allowed_html, $allowed_protocols =
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',
'gopher', 'mailto'))