WordPress.org

Make WordPress Core

Ticket #25365: 25365.5.diff

File 25365.5.diff, 633 bytes (added by adamsilverstein, 2 years ago)
  • src/wp-admin/includes/revision.php

    diff --git src/wp-admin/includes/revision.php src/wp-admin/includes/revision.php
    index 9edf52d2a0..5a765cb8da 100644
    function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null 
    166166
    167167        foreach ( $revisions as $revision ) {
    168168                $modified = strtotime( $revision->post_modified );
    169                 $modified_gmt = strtotime( $revision->post_modified_gmt );
     169                $modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' );
    170170                if ( $can_restore ) {
    171171                        $restore_link = str_replace( '&', '&', wp_nonce_url(
    172172                                add_query_arg(