Changeset 6865

Show
Ignore:
Timestamp:
02/15/08 22:42:44 (11 months ago)
Author:
ryan
Message:

Show (no title) if the page title is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/template.php

    r6852 r6865  
    382382        break; 
    383383    case 'title': 
    384         ?> 
    385         <td><strong><a href="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; the_title() ?></a></strong> 
     384        $title = get_the_title(); 
     385        if ( empty($title) ) 
     386            $title = __('(no title)'); 
     387        ?> 
     388        <td><strong><a href="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong> 
    386389        <?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td> 
    387390        <?php