From dc5aa67d841e1f3841ef3c3cdf1531863d864004 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Thu, 4 Mar 2010 02:23:30 +0000 Subject: [PATCH] use correct variable, see #11817 git-svn-id: http://svn.automattic.com/wordpress/trunk@13580 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index 60cce801cc..f5e7defb6f 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -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' ); } /** @@ -285,4 +285,4 @@ function wp_setup_nav_menu_item( $menu_item, $type = 'item', $position = 0 ) { return $menu_item; } -?> \ No newline at end of file +?>