mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
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:
parent
5133b4990b
commit
5c533c9b27
@ -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