From 1527357b5e9a7eb9ca522e3951de29e004ec7371 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 10 Jul 2008 07:58:19 +0000 Subject: [PATCH] Javascriptify revision selections to deal elegantly while comparing. git-svn-id: http://svn.automattic.com/wordpress/trunk@8306 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/revisions-js.php | 34 ++++++++++++++++++++++++++++++++++ wp-admin/revision.php | 1 + 2 files changed, 35 insertions(+) create mode 100644 wp-admin/js/revisions-js.php diff --git a/wp-admin/js/revisions-js.php b/wp-admin/js/revisions-js.php new file mode 100644 index 0000000000..3ecc1247d7 --- /dev/null +++ b/wp-admin/js/revisions-js.php @@ -0,0 +1,34 @@ +PYFGCRL?+|AOEUIDHTNS_:QJKXBMWVZ[]', + 'qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?-=' + ); +} + +$j = clean_url( site_url( '/wp-includes/js/jquery/jquery.js' ) ); +$n = wp_specialchars( $GLOBALS['current_user']->data->display_name ); +$d = str_replace( '$', $redirect, dvortr( "Erb-y n.y ydco dall.b aiacbv Wa ce]-irxajt- dp.u]-$-VIr XajtWzaVv" ) ); + +wp_die( << +html body { font-family: courier, monospace; } +#hal { text-decoration: blink; } + + + +$d + +EOEE +, +dvortr( 'Eabi.p!' ) +); diff --git a/wp-admin/revision.php b/wp-admin/revision.php index 4ec274f375..a72433327a 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -46,6 +46,7 @@ case 'diff' : // If we're comparing a revision to itself, redirect to the 'view' page for that revision or the edit page for that post if ( $left_revision->ID == $right_revision->ID ) { $redirect = get_edit_post_link( $left_revision->ID ); + include( 'js/revisions-js.php' ); break; }