Make WordPress Core

Changeset 45900


Ignore:
Timestamp:
08/27/2019 09:54:58 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r45739 r45900  
    18781878        $gravatar,
    18791879        $author,
    1880         human_time_diff( strtotime( $revision->post_modified ), current_time( 'timestamp' ) ),
     1880        human_time_diff( strtotime( $revision->post_modified_gmt ) ),
    18811881        $date
    18821882    );
Note: See TracChangeset for help on using the changeset viewer.