Make WordPress Core


Ignore:
Timestamp:
02/28/2013 03:14:34 PM (12 years ago)
Author:
westi
Message:

Revisions: First pass an implementing a new UI/UX for reviewing the revisions of posts. See #23497 props adamsilverstein for the initial patch.

This implements a new revisions ui using Backbone and preserves all the old methods of "integration" so the change should be transparent to plugins using revisi
ons with CPTs.

This is the first pass and so there are a number of things still to be resolved, more details in the ticket. Feedback welcomed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r23416 r23506  
    17141714    $left_lines  = explode("\n", $left_string);
    17151715    $right_lines = explode("\n", $right_string);
    1716 
    17171716    $text_diff = new Text_Diff($left_lines, $right_lines);
    1718     $renderer  = new WP_Text_Diff_Renderer_Table();
     1717    $renderer  = new WP_Text_Diff_Renderer_Table( $args );
    17191718    $diff = $renderer->render($text_diff);
    17201719
     
    17231722
    17241723    $r  = "<table class='diff'>\n";
    1725     $r .= "<col class='ltype' /><col class='content' /><col class='ltype' /><col class='content' />";
     1724
     1725    if ( isset( $args[ 'showsplitview' ] ) && 'true' == $args[ 'showsplitview' ] ) {
     1726        $r .= "<col class='content diffsplit left' /><col class='content diffsplit middle' /><col class='content diffsplit right' />";
     1727    } else {
     1728        $r .= "<col class='content' />";
     1729    }
    17261730
    17271731    if ( $args['title'] || $args['title_left'] || $args['title_right'] )
Note: See TracChangeset for help on using the changeset viewer.