Show (no title) if the page title is empty

git-svn-id: https://develop.svn.wordpress.org/trunk@6865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-15 22:42:44 +00:00
parent 0963c74c42
commit 8f1d84c5af

View File

@ -381,8 +381,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="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; the_title() ?></a></strong>
<td><strong><a href="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong>
<?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
<?php
break;