From 59d491abd06b5b7e10fd3262f74e85e4a97dffcf Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 5 Sep 2007 18:33:45 +0000 Subject: [PATCH] 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 --- wp-admin/post-new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php index 05e747f86d..d0b5bb16ca 100644 --- a/wp-admin/post-new.php +++ b/wp-admin/post-new.php @@ -64,7 +64,7 @@ if ( !empty($my_drafts) || !empty($pending) || !empty($others_drafts) ) { if ( $i > $nag_posts_limit ) break; echo ''; - the_title(); + ( '' == the_title('', '', FALSE) ) ? printf( __('Post #%s'), $post->ID ) : the_title(); echo ''; if ( $i < min($nag[3], $nag_posts_limit) ) echo ', ';