KSES fixes.

git-svn-id: https://develop.svn.wordpress.org/trunk@663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-12-30 08:34:57 +00:00
parent 2efe1ddfca
commit a00617018a
2 changed files with 10 additions and 6 deletions
+5 -4
View File
@@ -550,9 +550,10 @@ function the_date_xml() {
}
function the_date($d='', $before='', $after='', $echo = true) {
global $id, $post, $day, $previousday, $dateformat, $newday;
global $id, $post, $dateday, $previousday, $dateformat, $newday;
$the_date = '';
if ($day != $previousday) {
$dateday = mysql2date('Yd', $post->post_date);
if ($dateday != $previousday) {
$the_date .= $before;
if ($d=='') {
$the_date .= mysql2date($dateformat, $post->post_date);
@@ -560,7 +561,7 @@ function the_date($d='', $before='', $after='', $echo = true) {
$the_date .= mysql2date($d, $post->post_date);
}
$the_date .= $after;
$previousday = $day;
$previousday = $dateday;
}
$the_date = apply_filters('the_date', $the_date);
if ($echo) {
@@ -1687,10 +1688,10 @@ function comment_text() {
$comment_text = convert_chars($comment_text);
$comment_text = convert_bbcode($comment_text);
$comment_text = convert_gmcode($comment_text);
$comment_text = convert_smilies($comment_text);
$comment_text = make_clickable($comment_text);
$comment_text = balanceTags($comment_text,1);
$comment_text = apply_filters('comment_text', $comment_text);
$comment_text = convert_smilies($comment_text);
echo $comment_text;
}