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

git-svn-id: https://develop.svn.wordpress.org/trunk@6037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-05 18:33:45 +00:00
parent 85bec38507
commit 59d491abd0
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 ) if ( $i > $nag_posts_limit )
break; break;
echo '<a href="post.php?action=edit&amp;post=' . $post->ID . '">'; 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>'; echo '</a>';
if ( $i < min($nag[3], $nag_posts_limit) ) if ( $i < min($nag[3], $nag_posts_limit) )
echo ', '; echo ', ';