Ticket #5774: 5774.2.diff

File 5774.2.diff, 1.9 KB (added by DD32, 4 years ago)
  • wp-admin/edit-form-advanced.php

     
    128128<?php 
    129129if ($post_ID): 
    130130 
    131 if ( 'future' == $post->post_status ) 
     131if ( 'future' == $post->post_status ) { 
    132132        $time = __('Scheduled for:<br />%1$s at %2$s'); 
    133 else if ( 'publish' == $post->post_status ) 
     133        $date = $post->post_date; 
     134} else if ( 'publish' == $post->post_status ) { 
    134135        $time = __('Published on:<br />%1$s at %2$s'); 
    135 else 
     136        $date = $post->post_date; 
     137} else { 
    136138        $time = __('Saved on:<br />%1$s at %2$s'); 
     139        $date = $post->post_modified; 
     140} 
     141 
    137142?> 
    138 <p><?php printf($time, mysql2date(get_option('date_format'), $post->post_date), mysql2date(get_option('time_format'), $post->post_date)); ?> 
     143<p><?php printf($time, mysql2date(get_option('date_format'), $date), mysql2date(get_option('time_format'), $date)); ?> 
    139144<?php endif; ?> 
    140145</div> 
    141146 
  • wp-admin/edit-page-form.php

     
    9393<?php 
    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'); 
     104        $date = $post->post_modified; 
     105} 
     106 
    102107?> 
    103 <p><?php printf($time, mysql2date(get_option('date_format'), $post->post_date), mysql2date(get_option('time_format'), $post->post_date)); ?> 
     108<p><?php printf($time, mysql2date(get_option('date_format'), $date), mysql2date(get_option('time_format'), $date)); ?> 
    104109<?php endif; ?> 
    105110</div> 
    106111