Make WordPress Core


Ignore:
Timestamp:
02/15/2008 10:42:44 PM (17 years ago)
Author:
ryan
Message:

Show (no title) if the page title is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.