Changeset 7907 for trunk/wp-includes/pluggable.php
- Timestamp:
- 05/08/2008 05:25:07 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/pluggable.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r7886 r7907 1393 1393 */ 1394 1394 function wp_text_diff( $left_string, $right_string, $args = null ) { 1395 $defaults = array( 'title' => '' );1395 $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' ); 1396 1396 $args = wp_parse_args( $args, $defaults ); 1397 1397 … … 1426 1426 $r .= "<col class='ltype' /><col class='content' /><col class='ltype' /><col class='content' />"; 1427 1427 1428 if ( $args['title'] || $args['title_left'] || $args['title_right'] ) 1429 $r .= "<thead>"; 1428 1430 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"; 1430 1440 1431 1441 $r .= "<tbody>\n$diff\n</tbody>\n";
Note: See TracChangeset
for help on using the changeset viewer.