Use correct variable. fixes #24014. see #23119.

git-svn-id: http://core.svn.wordpress.org/trunk@23941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-09 20:50:45 +00:00
parent e3e667056d
commit 15e919bd24
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ function wp_delete_nav_menu( $menu ) {
// Remove this menu from any locations.
$locations = get_theme_mod( 'nav_menu_locations' );
foreach ( (array) $locations as $location => $menu_id ) {
if ( $menu_id == $nav_menu_id )
if ( $menu_id == $menu->term_id )
$locations[ $location ] = 0;
}
set_theme_mod( 'nav_menu_locations', $locations );