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

Props Rarst.
Fixes #44490.
Built from https://develop.svn.wordpress.org/trunk@43591


git-svn-id: http://core.svn.wordpress.org/trunk@43420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-08-30 08:50:24 +00:00
parent cf48e75785
commit dafee9fae6
2 changed files with 3 additions and 3 deletions

View File

@ -2307,9 +2307,9 @@ function get_the_date( $d = '', $post = null ) {
}
if ( '' == $d ) {
$the_date = mysql2date( get_option( 'date_format' ), $post->post_date );
$the_date = get_post_time( get_option( 'date_format' ), false, $post, true );
} else {
$the_date = mysql2date( $d, $post->post_date );
$the_date = get_post_time( $d, false, $post, true );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43590';
$wp_version = '5.0-alpha-43591';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.