mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
Show (no title) if the page title is empty
git-svn-id: http://svn.automattic.com/wordpress/trunk@6865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5509d35b49
commit
599507fbd4
@ -381,8 +381,11 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
|||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'title':
|
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(' — <strong>Private</strong>'); ?></td>
|
<?php if ('private' == $page->post_status) _e(' — <strong>Private</strong>'); ?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user