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:
wpmuguru 2010-03-04 02:23:30 +00:00
parent aa47e83dee
commit dc5aa67d84
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ function wp_delete_nav_menu( $menu ) {
wp_delete_post( $item ); wp_delete_post( $item );
} }
} }
wp_delete_term( $menu_id, 'nav_menu' ); wp_delete_term( $menu->term_id, 'nav_menu' );
} }
/** /**