Fix for edit timestamp of comments.

git-svn-id: http://svn.automattic.com/wordpress/trunk@496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-10-30 01:54:05 +00:00
parent bae7d70daf
commit 30601d05a0
2 changed files with 16 additions and 13 deletions

View File

@ -406,7 +406,7 @@ switch($action) {
$hh = ($hh > 23) ? $hh - 24 : $hh;
$mn = ($mn > 59) ? $mn - 60 : $mn;
$ss = ($ss > 59) ? $ss - 60 : $ss;
$datemodif = ", comment_date = 'aa-$mm-$jj $hh:$mn:$ss'";
$datemodif = ", comment_date = '$aa-$mm-$jj $hh:$mn:$ss'";
} else {
$datemodif = '';
}

View File

@ -388,7 +388,7 @@ switch($action) {
$hh = ($hh > 23) ? $hh - 24 : $hh;
$mn = ($mn > 59) ? $mn - 60 : $mn;
$ss = ($ss > 59) ? $ss - 60 : $ss;
$datemodif = ", comment_date = 'aa-$mm-$jj $hh:$mn:$ss'";
$datemodif = ", comment_date = '$aa-$mm-$jj $hh:$mn:$ss'";
} else {
$datemodif = '';
}
@ -428,8 +428,11 @@ switch($action) {
<?php
$i = 0;
foreach ($drafts as $draft) {
if (0 != $i) echo ', ';
$draft->post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = 'post-'.$draft->ID;
if (0 != $i)
echo ', ';
$draft->post_title = stripslashes($draft->post_title);
if ($draft->post_title == '')
$draft->post_title = 'post-'.$draft->ID;
echo "<a href='b2edit.php?action=edit&amp;post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
++$i;
}