Date/Time: Remove the last remaining current_time( 'timestamp' )
instance in wp_post_revision_title_expanded()
.
Timestamps don't carry any timezone information, using `$revision->post_modified_gmt` simplifies the logic. Props Rarst. See #40657. git-svn-id: https://develop.svn.wordpress.org/trunk@45900 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dea752ab65
commit
6c8b425d71
@ -1877,7 +1877,7 @@ function wp_post_revision_title_expanded( $revision, $link = true ) {
|
||||
__( '%1$s %2$s, %3$s ago (%4$s)' ),
|
||||
$gravatar,
|
||||
$author,
|
||||
human_time_diff( strtotime( $revision->post_modified ), current_time( 'timestamp' ) ),
|
||||
human_time_diff( strtotime( $revision->post_modified_gmt ) ),
|
||||
$date
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user