From 0738b73f9a439c4c23ddb8d055869ed4f69ac5e9 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 7 Jan 2004 01:28:30 +0000 Subject: [PATCH] KSES fixes. git-svn-id: https://develop.svn.wordpress.org/trunk@731 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/kses.php | 14 +++++++------- wp-includes/template-functions.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index f9660a5566..698a9c2e30 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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 = diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 73655faa4d..97625e9e2d 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -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=\"\""; } }