Show (no title) if the post title is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@6864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d35361464b
commit
5509d35b49
|
@ -64,8 +64,11 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
|||
<?php
|
||||
break;
|
||||
case 'title':
|
||||
$title = get_the_title();
|
||||
if ( empty($title) )
|
||||
$title = __('(no title)');
|
||||
?>
|
||||
<td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php the_title() ?></a></strong>
|
||||
<td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php echo $title ?></a></strong>
|
||||
<?php if ('private' == $post->post_status) _e(' — <strong>Private</strong>'); ?></td>
|
||||
<?php
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue