Ticket #3253: 3253.diff
File 3253.diff, 1.3 KB (added by , 18 years ago) |
---|
-
wp-includes/classes.php
489 489 $indent = str_repeat("\t", $depth); 490 490 491 491 $css_class = 'page_item'; 492 $_current_page = get_page( $current_page ); 492 493 if ( $page->ID == $current_page ) 493 494 $css_class .= ' current_page_item'; 495 elseif ( $_current_page && $page->ID == $_current_page->post_parent ) 496 $css_class .= ' current_page_parent'; 494 497 495 498 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . wp_specialchars($page->post_title, 1) . '">' . $page->post_title . '</a>'; 496 499 … … 598 601 if ( isset($show_date) && $show_date ) { 599 602 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); 600 603 } 601 604 605 $_current_category = get_category( $current_category ); 606 602 607 if ( 'list' == $args['style'] ) { 603 608 $output .= "\t<li"; 604 609 if ( ($category->cat_ID == $current_category) && is_category() ) 605 610 $output .= ' class="current-cat"'; 611 elseif ( ($category->cat_ID == $_current_category->category_parent) && is_category() ) 612 $output .= ' class="current-cat-parent"'; 606 613 $output .= ">$link\n"; 607 614 } else { 608 615 $output .= "\t$link<br />\n";