Revisions: Fix up some half renamed variables that break the view and display a mismash of split and combined views. See #23497 props adamsilverstein.

git-svn-id: http://core.svn.wordpress.org/trunk@23509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Westwood 2013-02-28 16:48:33 +00:00
parent 5133b4990b
commit 5c533c9b27
2 changed files with 4 additions and 4 deletions

View File

@ -2139,7 +2139,7 @@ function wp_ajax_revisions_data() {
$compareto = isset( $_GET['compareto'] ) ? absint( $_GET['compareto'] ) : 0;
$showautosaves = isset( $_GET['showautosaves'] ) ? $_GET['showautosaves'] : '';
$show_split_view = isset( $_GET['show_split_view'] ) ? $_GET['show_split_view'] : '';
$showsplitview = isset( $_GET['showsplitview'] ) ? $_GET['showsplitview'] : '';
$postid = isset( $_GET['post_id'] ) ? absint( $_GET['post_id'] ) : '';
$comparetwomode = ( '' == $postid ) ? false : true;
@ -2236,8 +2236,8 @@ function wp_ajax_revisions_data() {
$args = array();
if ( 'true' == $show_split_view )
$args = array( 'show_split_view' => 'true' );
if ( 'true' == $showsplitview )
$args = array( 'showsplitview' => 'true' );
$content .= wp_text_diff( $left_content, $right_content, $args );
}

View File

@ -174,7 +174,7 @@ window.wp = window.wp || {};
},
/*
* initialize the revision appl;ication
* initialize the revision application
*/
initialize : function( options ) {
var self = this; //store the application instance