From 1fe76304c93e07558f148657c73d449222a0603f Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 5 Feb 2004 14:40:32 +0000 Subject: [PATCH] Let people override the allowedtags variable. git-svn-id: https://develop.svn.wordpress.org/trunk@832 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/kses.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index ccb8872f6b..168e5b0892 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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'))