Make WordPress Core

Changeset 4491


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

Show 'Unpublished' instead of epoch time for drafts.

Location:
trunk/wp-admin
Files:
2 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>
  • trunk/wp-admin/edit.php

    r4480 r4491  
    178178    case 'date':
    179179        ?>
    180         <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td>
     180        <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>
    181181        <?php
    182182        break;
Note: See TracChangeset for help on using the changeset viewer.