mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
KSES fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b51cf5412b
commit
119f72da24
@ -14,15 +14,15 @@ $allowedtags = array('b' => array(),
|
||||
'i' => array(),
|
||||
'strong' => array(),
|
||||
'code' => array(),
|
||||
'acronym' => array('title'),
|
||||
'abbr' => array('title'),
|
||||
'acronym' => array('title' => array()),
|
||||
'abbr' => array('title' => array()),
|
||||
'em' => array(),
|
||||
'strike' => array(),
|
||||
'a' => array('href',
|
||||
'title',
|
||||
'rel'),
|
||||
'blockquote' => array('cite'),
|
||||
'del' => array('datetime'),
|
||||
'a' => array('href' => array(),
|
||||
'title' => array(),
|
||||
'rel' => array()),
|
||||
'blockquote' => array('cite' => array()),
|
||||
'del' => array('datetime' => array()),
|
||||
'br' => array());
|
||||
|
||||
function wp_kses($string, $allowed_html, $allowed_protocols =
|
||||
|
@ -1888,7 +1888,7 @@ function allowed_tags() {
|
||||
foreach($allowedtags as $tag => $attributes) {
|
||||
$allowed .= "<$tag";
|
||||
if (0 < count($attributes)) {
|
||||
foreach ($attributes as $attribute) {
|
||||
foreach ($attributes as $attribute => $limits) {
|
||||
$allowed .= " $attribute=\"\"";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user