Changeset 24663 for trunk/wp-admin/includes/revision.php
- Timestamp:
- 07/11/2013 08:57:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/revision.php
r24643 r24663 65 65 $post = get_post( $post ); 66 66 $revisions = array(); 67 $ current = current_time( 'timestamp');67 $now_gmt = time(); 68 68 69 69 $revisions = wp_get_post_revisions( $post->ID ); … … 92 92 'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified_gmt ), 93 93 'dateUnix' => $modified_gmt, 94 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $ current ) ),94 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), 95 95 'autosave' => wp_is_post_autosave( $revision ), 96 96 'current' => $revision->post_modified_gmt === $post->post_modified_gmt,
Note: See TracChangeset
for help on using the changeset viewer.