mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 01:52:24 +01:00
git-svn-id: https://develop.svn.wordpress.org/trunk@23941 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
99a0fef80c
commit
4f5e194154
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user