Changeset 6864

Show
Ignore:
Timestamp:
02/15/08 22:40:02 (9 months ago)
Author:
ryan
Message:

Show (no title) if the post title is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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