Changeset 14905
- Timestamp:
- 05/25/2010 09:44:34 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/style.css
r14882 r14905 432 432 } 433 433 #access ul li.current_page_item a , 434 #access ul li.current-menu-item a { 434 #access ul li.current-menu-ancestor a, 435 #access ul li.current-menu-item a, 436 #access ul li.current-menu-parent a { 435 437 color: #fff; 436 438 } -
trunk/wp-includes/nav-menu-template.php
r14900 r14905 82 82 $classes[] = 'page_item'; 83 83 $classes[] = 'page-item-' . $item->object_id; 84 if ( ! empty($item->classes) ) {84 if ( ! empty( $item->classes ) ) { 85 85 if ( in_array('current-menu-item', $classes) ) 86 86 $classes[] = 'current_page_item'; … … 362 362 // set parent's class 363 363 foreach ( (array) $menu_items as $key => $parent_item ) { 364 if ( 'post_type' == $parent_item->type && is_post_type_hierarchical( $queried_object->post_type ) && in_array( $parent_item->object_id, $queried_object->ancestors ) ) 365 $menu_items[$key]->classes = trim( $parent_item->classes . ' ' . 'current-' . $queried_object->post_type . '-ancestor' ); 364 if ( 365 isset( $parent_item->type ) && 366 'post_type' == $parent_item->type && 367 ! empty( $queried_object->post_type ) && 368 is_post_type_hierarchical( $queried_object->post_type ) && 369 in_array( $parent_item->object_id, $queried_object->ancestors ) 370 ) 371 $menu_items[$key]->classes = trim( $parent_item->classes . ' ' . 'current-' . $queried_object->post_type . '-ancestor current-menu-ancestor' ); 366 372 if ( in_array( $parent_item->db_id, $active_parent_item_ids ) ) 367 373 $menu_items[$key]->classes = trim( $parent_item->classes . ' ' . 'current-menu-parent' );
Note: See TracChangeset
for help on using the changeset viewer.