Ticket #25365: 25365.diff
File 25365.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/revision.php
130 130 131 131 foreach ( $revisions as $revision ) { 132 132 $modified = strtotime( $revision->post_modified ); 133 $modified_gmt = strtotime( $revision->post_modified_gmt );133 $modified_gmt = strtotime( $revision->post_modified_gmt . ' UTC' ); 134 134 if ( $can_restore ) { 135 135 $restore_link = str_replace( '&', '&', wp_nonce_url( 136 136 add_query_arg( -
src/wp-includes/comment.php
2518 2518 if ( ! $days_old ) 2519 2519 return $posts; 2520 2520 2521 if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( $days_old * DAY_IN_SECONDS ) ) {2521 if ( time() - strtotime( $posts[0]->post_date_gmt . ' UTC' ) > ( $days_old * DAY_IN_SECONDS ) ) { 2522 2522 $posts[0]->comment_status = 'closed'; 2523 2523 $posts[0]->ping_status = 'closed'; 2524 2524 } … … 2554 2554 if ( ! in_array( $post->post_type, $post_types ) ) 2555 2555 return $open; 2556 2556 2557 if ( time() - strtotime( $post->post_date_gmt ) > ( $days_old * DAY_IN_SECONDS ) )2557 if ( time() - strtotime( $post->post_date_gmt . ' UTC' ) > ( $days_old * DAY_IN_SECONDS ) ) 2558 2558 return false; 2559 2559 2560 2560 return $open;