KSES fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3595621835
commit
0738b73f9a
|
@ -14,15 +14,15 @@ $allowedtags = array('b' => array(),
|
||||||
'i' => array(),
|
'i' => array(),
|
||||||
'strong' => array(),
|
'strong' => array(),
|
||||||
'code' => array(),
|
'code' => array(),
|
||||||
'acronym' => array('title'),
|
'acronym' => array('title' => array()),
|
||||||
'abbr' => array('title'),
|
'abbr' => array('title' => array()),
|
||||||
'em' => array(),
|
'em' => array(),
|
||||||
'strike' => array(),
|
'strike' => array(),
|
||||||
'a' => array('href',
|
'a' => array('href' => array(),
|
||||||
'title',
|
'title' => array(),
|
||||||
'rel'),
|
'rel' => array()),
|
||||||
'blockquote' => array('cite'),
|
'blockquote' => array('cite' => array()),
|
||||||
'del' => array('datetime'),
|
'del' => array('datetime' => array()),
|
||||||
'br' => array());
|
'br' => array());
|
||||||
|
|
||||||
function wp_kses($string, $allowed_html, $allowed_protocols =
|
function wp_kses($string, $allowed_html, $allowed_protocols =
|
||||||
|
|
|
@ -1888,7 +1888,7 @@ function allowed_tags() {
|
||||||
foreach($allowedtags as $tag => $attributes) {
|
foreach($allowedtags as $tag => $attributes) {
|
||||||
$allowed .= "<$tag";
|
$allowed .= "<$tag";
|
||||||
if (0 < count($attributes)) {
|
if (0 < count($attributes)) {
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute => $limits) {
|
||||||
$allowed .= " $attribute=\"\"";
|
$allowed .= " $attribute=\"\"";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue