diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css
index c6a6cc0b59..2f58d33864 100644
--- a/wp-admin/css/wp-admin.css
+++ b/wp-admin/css/wp-admin.css
@@ -3531,7 +3531,8 @@ td.plugin-title p {
------------------------------------------------------------------------------*/
/* Revision meta box */
-.post-revisions li img {
+.post-revisions li img,
+#revisions-meta-restored img {
vertical-align: middle;
}
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index 8380240f68..c0c68c9503 100644
--- a/wp-includes/post-template.php
+++ b/wp-includes/post-template.php
@@ -1475,26 +1475,26 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
echo "
\n";
echo $rows;
- //
// if the post was previously restored from a revision
// show the restore event details
- //
if ( $restored_from_meta = get_post_meta( $post->ID, '_post_restored_from', true ) ) {
- $author = get_the_author_meta( 'display_name', $restored_from_meta[ 'restored_by_user' ] );
+ $author = get_user_by( 'id', $restored_from_meta[ 'restored_by_user' ] );
/* translators: revision date format, see http://php.net/date */
$datef = _x( 'j F, Y @ G:i:s', 'revision date format');
$date = date_i18n( $datef, strtotime( $restored_from_meta[ 'restored_time' ] ) );
- $timesince = human_time_diff( $restored_from_meta[ 'restored_time' ], current_time( 'timestamp' ) ) ;
+ $time_diff = human_time_diff( $restored_from_meta[ 'restored_time' ] ) ;
?>
ID, 24 ),
+ $author->display_name,
+ $time_diff,
+ $date
+ );
?>