Changeset 14923 for trunk/wp-includes/nav-menu-template.php
- Timestamp:
- 05/26/2010 02:38:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu-template.php
r14905 r14923 307 307 $active_parent_object_ids = array(); 308 308 $possible_object_parents = array(); 309 $home_page_id = (int) get_option( 'page_for_posts' ); 309 310 310 311 if ( $wp_query->is_singular && ! empty( $queried_object->post_type ) && ! is_post_type_hierarchical( $queried_object->post_type ) ) { … … 333 334 $menu_item->object_id == $queried_object_id && 334 335 ( 336 ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && $wp_query->is_home && $home_page_id = $menu_item->object_id ) || 335 337 ( 'post_type' == $menu_item->type && $wp_query->is_singular ) || 336 338 ( 'taxonomy' == $menu_item->type && ( $wp_query->is_category || $wp_query->is_tag || $wp_query->is_tax ) )
Note: See TracChangeset
for help on using the changeset viewer.