mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02:00
Fix post time display. Bug 636.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f67ca5c196
commit
7f29387599
@ -606,11 +606,10 @@ function the_time( $d = '' ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_the_time( $d = '' ) {
|
function get_the_time( $d = '' ) {
|
||||||
global $id, $post;
|
|
||||||
if ( '' == $d )
|
if ( '' == $d )
|
||||||
$the_time = date( get_settings('time_format'), get_post_time() );
|
$the_time = date( get_settings('time_format'), get_post_time() );
|
||||||
else
|
else
|
||||||
$the_time = mysql2date( $d, get_post_time() );
|
$the_time = date( $d, get_post_time() );
|
||||||
return apply_filters('get_the_time', $the_time);
|
return apply_filters('get_the_time', $the_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user