WordPress.org

Make WordPress Core

Ticket #23497: 23497.13.diff

File 23497.13.diff, 1.4 KB (added by adamsilverstein, 5 years ago)

corrects split view variable passthru

  • wp-admin/includes/ajax-actions.php

     
    21392139
    21402140        $compareto = isset( $_GET['compareto'] ) ? absint( $_GET['compareto'] ) : 0;
    21412141        $showautosaves = isset( $_GET['showautosaves'] ) ? $_GET['showautosaves'] : '';
    2142         $show_split_view = isset( $_GET['show_split_view'] ) ? $_GET['show_split_view'] : '';
     2142        $showsplitview = isset( $_GET['showsplitview'] ) ? $_GET['showsplitview'] : '';
    21432143        $postid = isset( $_GET['post_id'] ) ? absint( $_GET['post_id'] ) : '';
    21442144
    21452145        $comparetwomode = ( '' == $postid ) ? false : true;
     
    22362236
    22372237                $args = array();
    22382238
    2239                 if ( 'true' == $show_split_view )
    2240                          $args = array( 'show_split_view' => 'true' );
     2239                if ( 'true' == $showsplitview )
     2240                         $args = array( 'showsplitview' => 'true' );
    22412241
    22422242                $content .= wp_text_diff( $left_content, $right_content, $args );
    22432243        }
  • wp-admin/js/revisions.js

     
    174174                        },
    175175
    176176                        /*
    177                          * initialize the revision appl;ication
     177                         * initialize the revision application
    178178                         */
    179179                        initialize : function( options ) {
    180180                                var self = this; //store the application instance