85 | | 'id' => $revision->ID, |
86 | | 'title' => get_the_title( $post->ID ), |
87 | | 'author' => array( |
88 | | 'id' => (int) $revision->post_author, |
89 | | 'avatar' => get_avatar( $revision->post_author, 24 ), |
90 | | 'name' => get_the_author_meta( 'display_name', $revision->post_author ), |
91 | | ), |
92 | | 'date' => date_i18n( __( 'M j, Y @ G:i' ), $modified ), |
93 | | 'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified ), |
94 | | 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), |
95 | | 'autosave' => wp_is_post_autosave( $revision ), |
96 | | 'current' => $revision->post_modified_gmt === $post->post_modified_gmt, |
97 | | 'restoreUrl' => urldecode( $restore_link ), |
| 95 | 'id' => $revision->ID, |
| 96 | 'title' => get_the_title( $post->ID ), |
| 97 | 'author' => $authors[ $revision->post_author ], |
| 98 | 'date' => date_i18n( __( 'M j, Y @ G:i' ), $modified ), |
| 99 | 'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified ), |
| 100 | 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), |
| 101 | 'autosave' => wp_is_post_autosave( $revision ), |
| 102 | 'current' => $revision->post_modified_gmt === $post->post_modified_gmt, |
| 103 | 'restoreUrl' => urldecode( $restore_link ), |