Make WordPress Core

Ticket #39800: 39800.patch

File 39800.patch, 737 bytes (added by mrwweb, 7 years ago)

first attempt at patch

  • src/wp-includes/nav-menu-template.php

     
    394394                ) {
    395395                        $classes[] = 'current-menu-item';
    396396                        $menu_items[$key]->current = true;
     397                        $active_parent_item_ids[] = (int) $menu_item->menu_item_parent;
     398                        $active_parent_object_ids[] = (int) $menu_item->post_parent;
     399                        $active_object = $menu_item->object;
    397400                // if the menu item corresponds to the currently-requested URL
    398401                } elseif ( 'custom' == $menu_item->object && isset( $_SERVER['HTTP_HOST'] ) ) {
    399402                        $_root_relative_current = untrailingslashit( $_SERVER['REQUEST_URI'] );