use correct variable, see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa47e83dee
commit
dc5aa67d84
|
@ -109,7 +109,7 @@ function wp_delete_nav_menu( $menu ) {
|
|||
wp_delete_post( $item );
|
||||
}
|
||||
}
|
||||
wp_delete_term( $menu_id, 'nav_menu' );
|
||||
wp_delete_term( $menu->term_id, 'nav_menu' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue