diff --git a/wp-admin/css/wp-admin-rtl.css b/wp-admin/css/wp-admin-rtl.css
index 4027e818df..e0b68b0f13 100644
--- a/wp-admin/css/wp-admin-rtl.css
+++ b/wp-admin/css/wp-admin-rtl.css
@@ -1004,7 +1004,7 @@ th.sorted a span {
margin-right: 5px;
}
-#restore-revision {
+.diff-header > input.restore-revision {
margin-left: 0;
margin-right: 10px;
}
diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css
index f3e0fd60ae..f538afe759 100644
--- a/wp-admin/css/wp-admin.css
+++ b/wp-admin/css/wp-admin.css
@@ -3629,7 +3629,7 @@ table.diff .diff-addedline ins {
margin-left: 5px;
}
-#restore-revision {
+.diff-header > input.restore-revision {
margin-left: 10px;
}
diff --git a/wp-admin/js/revisions.js b/wp-admin/js/revisions.js
index 8ec4a2ab92..ead814b71d 100644
--- a/wp-admin/js/revisions.js
+++ b/wp-admin/js/revisions.js
@@ -462,7 +462,7 @@ window.wp = window.wp || {};
template: wp.template('revisions-meta'),
events: {
- 'click #restore-revision': 'restoreRevision'
+ 'click .restore-revision': 'restoreRevision'
},
initialize: function() {
@@ -476,8 +476,7 @@ window.wp = window.wp || {};
updateMeta: function( from, to ) {
this.$el.html( this.template( this.model.toJSON() ) );
-
- $('#restore-revision').prop( 'disabled', to.attributes.current );
+ this.$('.restore-revision').prop( 'disabled', to.attributes.current );
}
});
diff --git a/wp-admin/revision.php b/wp-admin/revision.php
index bbf751bd67..e621eb216e 100644
--- a/wp-admin/revision.php
+++ b/wp-admin/revision.php
@@ -176,7 +176,7 @@ require_once( './admin-header.php' );
<# } #>
-
+