Make WordPress Core

Changeset 6864


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

Show (no title) if the post title is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-post-rows.php

    r6856 r6864  
    6565        break;
    6666    case 'title':
     67        $title = get_the_title();
     68        if ( empty($title) )
     69            $title = __('(no title)');
    6770        ?>
    68         <td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php the_title() ?></a></strong>
     71        <td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php echo $title ?></a></strong>
    6972        <?php if ('private' == $post->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
    7073        <?php
Note: See TracChangeset for help on using the changeset viewer.