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:
parent
6a7baa24a6
commit
61d5337aca
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue