From 6c8b425d71428b487610c0a5fe911d05eabfce49 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 27 Aug 2019 21:54:58 +0000 Subject: [PATCH] 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 --- src/wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 96af0b60d1..475fb54d97 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -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 );