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:
parent
32d14eec44
commit
4e590c32fd
|
@ -380,6 +380,7 @@ switch($action) {
|
|||
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;
|
||||
echo "<a href='b2edit.php?action=edit&post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
|
||||
++$i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue