Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:24:55 AM (19 years ago)
Author:
ryan
Message:

Show 'Unpublished' instead of epoch time for drafts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4481 r4491  
    780780    </td>
    781781    <td><?php the_author() ?></td>
    782     <td><?php echo mysql2date( 'Y-m-d g:i a', $post->post_modified ); ?></td>
     782    <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( 'Y-m-d g:i a', $post->post_modified ); ?></td>
    783783    <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td>
    784784    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>
Note: See TracChangeset for help on using the changeset viewer.