Make WordPress Core

Ticket #44490: trac-44490.diff

File trac-44490.diff, 595 bytes (added by Rarst, 8 years ago)

Changed get_the_date() to call get_post_time() for consistency.

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index d521a64eab..eb2710efe3 100644
    a b function get_the_date( $d = '', $post = null ) {  
    23012301        }
    23022302
    23032303        if ( '' == $d ) {
    2304                 $the_date = mysql2date( get_option( 'date_format' ), $post->post_date );
     2304                $the_date = get_post_time( get_option( 'date_format' ), false, $post, true );
    23052305        } else {
    2306                 $the_date = mysql2date( $d, $post->post_date );
     2306                $the_date = get_post_time( $d, false, $post, true );
    23072307        }
    23082308
    23092309        /**