mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Show (no title) if the post title is empty
git-svn-id: https://develop.svn.wordpress.org/trunk@6864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
06dae5ed28
commit
0963c74c42
@ -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…
x
Reference in New Issue
Block a user