Show "Post #N" for posts without a title in the nag. Props Viper007Bond. fixes #4849

git-svn-id: http://svn.automattic.com/wordpress/trunk@6037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-05 18:33:45 +00:00
parent 1760555e8b
commit f396867f60
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ if ( !empty($my_drafts) || !empty($pending) || !empty($others_drafts) ) {
if ( $i > $nag_posts_limit )
break;
echo '<a href="post.php?action=edit&amp;post=' . $post->ID . '">';
the_title();
( '' == the_title('', '', FALSE) ) ? printf( __('Post #%s'), $post->ID ) : the_title();
echo '</a>';
if ( $i < min($nag[3], $nag_posts_limit) )
echo ', ';