git-svn-id: http://core.svn.wordpress.org/trunk@23941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e3e667056d
commit
15e919bd24
|
@ -192,7 +192,7 @@ function wp_delete_nav_menu( $menu ) {
|
||||||
// Remove this menu from any locations.
|
// Remove this menu from any locations.
|
||||||
$locations = get_theme_mod( 'nav_menu_locations' );
|
$locations = get_theme_mod( 'nav_menu_locations' );
|
||||||
foreach ( (array) $locations as $location => $menu_id ) {
|
foreach ( (array) $locations as $location => $menu_id ) {
|
||||||
if ( $menu_id == $nav_menu_id )
|
if ( $menu_id == $menu->term_id )
|
||||||
$locations[ $location ] = 0;
|
$locations[ $location ] = 0;
|
||||||
}
|
}
|
||||||
set_theme_mod( 'nav_menu_locations', $locations );
|
set_theme_mod( 'nav_menu_locations', $locations );
|
||||||
|
|
Loading…
Reference in New Issue