WordPress.org

Make WordPress Core

Changeset 6041


Ignore:
Timestamp:
09/05/07 22:17:59 (8 years ago)
Author:
markjaquith
Message:

Use post_date (not post_modified) to check for unpublished posts when showing post listings in admin. fixes #4914

File:
1 edited

Legend:

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

    r6026 r6041  
    3939    case 'date': 
    4040        ?> 
    41         <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td> 
     41        <td><?php if ( '0000-00-00 00:00:00' ==$post->post_date) _e('Unpublished'); else the_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td> 
    4242        <?php 
    4343        break; 
Note: See TracChangeset for help on using the changeset viewer.