WordPress.org

Make WordPress Core

Ticket #9730: template.diff

File template.diff, 1.3 KB (added by kambiz.k, 6 years ago)

Patch for [wp-admin\includes\template.php] to fix the issue

  • template.php

     
    25322532 
    25332533        $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 ); 
    25342534        $post_date = ($for_post) ? $post->post_date : $comment->comment_date; 
    2535         $jj = ($edit) ? mysql2date( 'd', $post_date ) : gmdate( 'd', $time_adj ); 
    2536         $mm = ($edit) ? mysql2date( 'm', $post_date ) : gmdate( 'm', $time_adj ); 
    2537         $aa = ($edit) ? mysql2date( 'Y', $post_date ) : gmdate( 'Y', $time_adj ); 
    2538         $hh = ($edit) ? mysql2date( 'H', $post_date ) : gmdate( 'H', $time_adj ); 
    2539         $mn = ($edit) ? mysql2date( 'i', $post_date ) : gmdate( 'i', $time_adj ); 
    2540         $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj ); 
     2535        $jj = ($edit) ? mysql2date( 'd', $post_date, false ) : gmdate( 'd', $time_adj ); 
     2536        $mm = ($edit) ? mysql2date( 'm', $post_date, false ) : gmdate( 'm', $time_adj ); 
     2537        $aa = ($edit) ? mysql2date( 'Y', $post_date, false ) : gmdate( 'Y', $time_adj ); 
     2538        $hh = ($edit) ? mysql2date( 'H', $post_date, false ) : gmdate( 'H', $time_adj ); 
     2539        $mn = ($edit) ? mysql2date( 'i', $post_date, false ) : gmdate( 'i', $time_adj ); 
     2540        $ss = ($edit) ? mysql2date( 's', $post_date, false ) : gmdate( 's', $time_adj ); 
    25412541 
    25422542        $cur_jj = gmdate( 'd', $time_adj ); 
    25432543        $cur_mm = gmdate( 'm', $time_adj );