From 9e78cd0042a52a5b8739ca6f5a370565b6f25506 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 4 Apr 2013 20:49:26 +0000 Subject: [PATCH] Fix typo in revisions JS/CSS. props mgibbs189, JustinSainton. fixes #23941. git-svn-id: http://core.svn.wordpress.org/trunk@23908 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/wp-admin.css | 2 +- wp-admin/js/revisions.js | 6 +++--- wp-admin/revision.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index ce64500fc7..b1801ca6c5 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -3662,7 +3662,7 @@ table.diff .diff-addedline ins { position: relative; } -#toogle-revision-compare-mode { +#toggle-revision-compare-mode { position: absolute; top: 0; right: 0; diff --git a/wp-admin/js/revisions.js b/wp-admin/js/revisions.js index f1149f0469..1379ce46d2 100644 --- a/wp-admin/js/revisions.js +++ b/wp-admin/js/revisions.js @@ -630,7 +630,7 @@ window.wp = window.wp || {}; ( Diff.rightDiff > Diff.revisions.length ) ? '' : Diff.revisions.at( Diff.rightDiff - 1 ).get( 'titleTooltip' ) ); } - this.toogleCompareTwoCheckbox(); + this.toggleCompareTwoCheckbox(); // hide the restore button when on the last sport/current post data $( '#restore-revision' ).toggle( ! Diff.revisions.at( Diff.rightDiff - 1 ).get( 'is_current_revision' ) ); @@ -638,10 +638,10 @@ window.wp = window.wp || {}; return this; }, - toogleCompareTwoCheckbox: function() { + toggleCompareTwoCheckbox: function() { // don't allow compare two if fewer than three revisions if ( this.model.length < 3 ) - $( '#toogle-revision-compare-mode' ).hide(); + $( '#toggle-revision-compare-mode' ).hide(); $( '#compare-two-revisions' ).prop( 'checked', ! Diff.singleRevision ); }, diff --git a/wp-admin/revision.php b/wp-admin/revision.php index 9da7a90c45..88bf12059e 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -116,7 +116,7 @@ require_once( './admin-header.php' );