mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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:
parent
1760555e8b
commit
f396867f60
@ -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&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 ', ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user