Fix for draft mode posts with now title

git-svn-id: http://svn.automattic.com/wordpress/trunk@243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-23 22:05:32 +00:00
parent 32d14eec44
commit 4e590c32fd

View File

@ -380,6 +380,7 @@ switch($action) {
foreach ($drafts as $draft) { foreach ($drafts as $draft) {
if (0 != $i) echo ', '; if (0 != $i) echo ', ';
$draft->post_title = stripslashes($draft->post_title); $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>"; echo "<a href='b2edit.php?action=edit&amp;post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
++$i; ++$i;
} }