Make WordPress Core


Ignore:
Timestamp:
05/08/2008 05:25:07 PM (18 years ago)
Author:
ryan
Message:

Move autosave to post revisions. Props mdawaffe. see #6775

File:
1 edited

Legend:

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

    r7886 r7907  
    13931393 */
    13941394function wp_text_diff( $left_string, $right_string, $args = null ) {
    1395     $defaults = array( 'title' => '' );
     1395    $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' );
    13961396    $args = wp_parse_args( $args, $defaults );
    13971397
     
    14261426    $r .= "<col class='ltype' /><col class='content' /><col class='ltype' /><col class='content' />";
    14271427
     1428    if ( $args['title'] || $args['title_left'] || $args['title_right'] )
     1429        $r .= "<thead>";
    14281430    if ( $args['title'] )
    1429         $r .= "<thead><tr><th colspan='4'>$args[title]</th></tr></thead>\n";
     1431        $r .= "<tr class='diff-title'><th colspan='4'>$args[title]</th></tr>\n";
     1432    if ( $args['title_left'] || $args['title_right'] ) {
     1433        $r .= "<tr class='diff-sub-title'>\n";
     1434        $r .= "\t<td></td><th>$args[title_left]</th>\n";
     1435        $r .= "\t<td></td><th>$args[title_right]</th>\n";
     1436        $r .= "</tr>\n";
     1437    }
     1438    if ( $args['title'] || $args['title_left'] || $args['title_right'] )
     1439        $r .= "</thead>\n";
    14301440
    14311441    $r .= "<tbody>\n$diff\n</tbody>\n";
Note: See TracChangeset for help on using the changeset viewer.