Changeset 5920
- Timestamp:
- 08/22/2007 10:59:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r5873 r5920 512 512 $indent = str_repeat("\t", $depth); 513 513 extract($args, EXTR_SKIP); 514 $css_class = 'page_item ';514 $css_class = 'page_item page-item-'.$page->ID; 515 515 $_current_page = get_page( $current_page ); 516 516 if ( $page->ID == $current_page ) 517 $css_class .= ' current_page_item ';517 $css_class .= ' current_page_item '; 518 518 elseif ( $_current_page && $page->ID == $_current_page->post_parent ) 519 519 $css_class .= ' current_page_parent'; … … 635 635 if ( 'list' == $args['style'] ) { 636 636 $output .= "\t<li"; 637 $class = 'cat-item cat-item-'.$category->term_id; 637 638 if ( $current_category && ($category->term_id == $current_category) ) 638 $ output .= ' class="current-cat"';639 $class .= ' current-cat'; 639 640 elseif ( $_current_category && ($category->term_id == $_current_category->parent) ) 640 $output .= ' class="current-cat-parent"'; 641 $class .= ' current-cat-parent'; 642 $output .= ' class="'.$class.'"'; 641 643 $output .= ">$link\n"; 642 644 } else { … … 693 695 function add( $args = '' ) { 694 696 $defaults = array( 695 'what' => 'object', 'action' => false, 696 'id' => '0', 'old_id' => false, 697 'what' => 'object', 'action' => false, 698 'id' => '0', 'old_id' => false, 697 699 'data' => '', 'supplemental' => array() 698 700 );
Note: See TracChangeset
for help on using the changeset viewer.