WordPress.org

Make WordPress Core

Ticket #7337: 7337.diff

File 7337.diff, 577 bytes (added by andrewryno, 15 months ago)
  • wp-includes/nav-menu-template.php

     
    251251 * @param array $menu_items The current menu item objects to which to add the class property information. 
    252252 */ 
    253253function _wp_menu_item_classes_by_context( &$menu_items ) { 
    254         global $wp_query; 
     254        global $wp_query, $wp_rewrite; 
    255255 
    256256        $queried_object = $wp_query->get_queried_object(); 
    257257        $queried_object_id = (int) $wp_query->queried_object_id;