Let people override the allowedtags variable.
git-svn-id: http://svn.automattic.com/wordpress/trunk@832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a87acdf1e2
commit
ebf9f84acd
|
@ -11,6 +11,7 @@
|
||||||
# [kses strips evil scripts!]
|
# [kses strips evil scripts!]
|
||||||
|
|
||||||
// You could override this in your my-hacks.php file
|
// 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(
|
$allowedtags = array(
|
||||||
'a' => array(
|
'a' => array(
|
||||||
'href' => array(),
|
'href' => array(),
|
||||||
|
@ -40,7 +41,7 @@ $allowedtags = array(
|
||||||
// 'u' => array(),
|
// 'u' => array(),
|
||||||
// 'ul' => array(),
|
// 'ul' => array(),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
function wp_kses($string, $allowed_html, $allowed_protocols =
|
function wp_kses($string, $allowed_html, $allowed_protocols =
|
||||||
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',
|
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',
|
||||||
'gopher', 'mailto'))
|
'gopher', 'mailto'))
|
||||||
|
|
Loading…
Reference in New Issue