Ticket #4703: walker-classes.diff
File walker-classes.diff, 1.4 KB (added by , 18 years ago) |
---|
-
wp-includes/classes.php
507 507 if ( $depth ) 508 508 $indent = str_repeat("\t", $depth); 509 509 extract($args, EXTR_SKIP); 510 $css_class = 'page_item ';510 $css_class = 'page_item page_item_'.$page->ID; 511 511 $_current_page = get_page( $current_page ); 512 512 if ( $page->ID == $current_page ) 513 513 $css_class .= ' current_page_item'; … … 630 630 631 631 if ( 'list' == $args['style'] ) { 632 632 $output .= "\t<li"; 633 $class = 'cat_item cat_item_'.$category->term_id; 633 634 if ( $current_category && ($category->term_id == $current_category) ) 634 $ output .= ' class="current-cat"';635 $class .= ' current-cat'; 635 636 elseif ( $_current_category && ($category->term_id == $_current_category->parent) ) 636 $output .= ' class="current-cat-parent"'; 637 $class .= ' current-cat-parent'; 638 $output .= ' class="'.$class.'"'; 637 639 $output .= ">$link\n"; 638 640 } else { 639 641 $output .= "\t$link<br />\n"; … … 688 690 // a WP_Error object can be passed in 'id' or 'data' 689 691 function add( $args = '' ) { 690 692 $defaults = array( 691 'what' => 'object', 'action' => false, 692 'id' => '0', 'old_id' => false, 693 'what' => 'object', 'action' => false, 694 'id' => '0', 'old_id' => false, 693 695 'data' => '', 'supplemental' => array() 694 696 ); 695 697