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: https://develop.svn.wordpress.org/trunk@23509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1db3a3aa0
commit
79d635459e
@ -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 );
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user