Make WordPress Core

Changeset 43591


Ignore:
Timestamp:
08/30/2018 08:49:40 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Date/Time: Make get_the_date() call get_post_time() for consistency with get_the_time().

Props Rarst.
Fixes #44490.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r43582 r43591  
    23082308
    23092309    if ( '' == $d ) {
    2310         $the_date = mysql2date( get_option( 'date_format' ), $post->post_date );
     2310        $the_date = get_post_time( get_option( 'date_format' ), false, $post, true );
    23112311    } else {
    2312         $the_date = mysql2date( $d, $post->post_date );
     2312        $the_date = get_post_time( $d, false, $post, true );
    23132313    }
    23142314
Note: See TracChangeset for help on using the changeset viewer.