Comment_allowed_tags fixup.

git-svn-id: http://svn.automattic.com/wordpress/trunk@709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-01-03 23:48:16 +00:00
parent 4ef7999064
commit f4e3970ec1
4 changed files with 20 additions and 6 deletions

View File

@@ -1879,4 +1879,18 @@ function permalink_single_rss($file = '') {
/***** // Permalink tags *****/
?>
function allowed_tags() {
global $allowedtags;
foreach($allowedtags as $tag => $attributes) {
$allowed .= "<$tag";
if (0 < count($attributes)) {
foreach ($attributes as $attribute) {
$allowed .= " $attribute=\"\"";
}
}
$allowed .= "> ";
}
return htmlentities($allowed);
}
?>