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:
parent
85bec38507
commit
59d491abd0
|
@ -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&post=' . $post->ID . '">';
|
echo '<a href="post.php?action=edit&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 ', ';
|
||||||
|
|
Loading…
Reference in New Issue