|
@@ 372-377 (lines=6) @@
|
| 369 |
|
$menu_items[$key]->current = true; |
| 370 |
|
$_anc_id = (int) $menu_item->db_id; |
| 371 |
|
|
| 372 |
|
while( |
| 373 |
|
( $_anc_id = get_post_meta( $_anc_id, '_menu_item_menu_item_parent', true ) ) && |
| 374 |
|
! in_array( $_anc_id, $active_ancestor_item_ids ) |
| 375 |
|
) { |
| 376 |
|
$active_ancestor_item_ids[] = $_anc_id; |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
if ( 'post_type' == $menu_item->type && 'page' == $menu_item->object ) { |
| 380 |
|
// Back compat classes for pages to match wp_page_menu() |
|
@@ 415-420 (lines=6) @@
|
| 412 |
|
$menu_items[$key]->current = true; |
| 413 |
|
$_anc_id = (int) $menu_item->db_id; |
| 414 |
|
|
| 415 |
|
while( |
| 416 |
|
( $_anc_id = get_post_meta( $_anc_id, '_menu_item_menu_item_parent', true ) ) && |
| 417 |
|
! in_array( $_anc_id, $active_ancestor_item_ids ) |
| 418 |
|
) { |
| 419 |
|
$active_ancestor_item_ids[] = $_anc_id; |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
if ( in_array( home_url(), array( untrailingslashit( $current_url ), untrailingslashit( $_indexless_current ) ) ) ) { |
| 423 |
|
// Back compat for home link to match wp_page_menu() |