Make WordPress Core


Ignore:
Timestamp:
02/09/2008 08:40:00 AM (17 years ago)
Author:
ryan
Message:

Fix display of dates for drafts and future posts. Props DD32 and ffemtcj. see #5774

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r6762 r6768  
    9494if ($post_ID):
    9595
    96 if ( 'future' == $post->post_status )
     96if ( 'future' == $post->post_status ) {
    9797    $time = __('Scheduled for:<br />%1$s at %2$s');
    98 else if ( 'publish' == $post->post_status )
     98    $date = $post->post_date;
     99} else if ( 'publish' == $post->post_status ) {
    99100    $time = __('Published on:<br />%1$s at %2$s');
    100 else
     101    $date = $post->post_date;
     102} else {
    101103    $time = __('Saved on:<br />%1$s at %2$s');
    102 ?>
    103 <p><?php printf($time, mysql2date(get_option('date_format'), $post->post_date), mysql2date(get_option('time_format'), $post->post_date)); ?>
     104    $date = $post->post_modified;
     105}
     106
     107?>
     108<p><?php printf($time, mysql2date(get_option('date_format'), $date), mysql2date(get_option('time_format'), $date)); ?>
    104109<?php endif; ?>
    105110</div>
Note: See TracChangeset for help on using the changeset viewer.