Declare wp_rewrite as global in _wp_menu_item_classes_by_context().

Props andrewryno
fixes #7337


git-svn-id: http://core.svn.wordpress.org/trunk@23309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2013-01-21 14:44:30 +00:00
parent ea8265b2a9
commit 868873da55
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ function wp_nav_menu( $args = array() ) {
* @param array $menu_items The current menu item objects to which to add the class property information.
*/
function _wp_menu_item_classes_by_context( &$menu_items ) {
global $wp_query;
global $wp_query, $wp_rewrite;
$queried_object = $wp_query->get_queried_object();
$queried_object_id = (int) $wp_query->queried_object_id;