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:
parent
cf48e75785
commit
dafee9fae6
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue