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.
Built from https://develop.svn.wordpress.org/trunk@45900


git-svn-id: http://core.svn.wordpress.org/trunk@45711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-27 21:55:56 +00:00
parent 6a7baa24a6
commit 61d5337aca
2 changed files with 2 additions and 2 deletions

View File

@ -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
);

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45899';
$wp_version = '5.3-alpha-45900';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.