diff --git a/wp-includes/custom-navigation.php b/wp-includes/custom-navigation.php index e989816eec..188c5b7473 100644 --- a/wp-includes/custom-navigation.php +++ b/wp-includes/custom-navigation.php @@ -49,6 +49,10 @@ function wp_create_nav_menu( $menu_name ) { return wp_insert_term( $menu_name, 'nav_menu' ); } +function wp_get_nav_menu( $menu ) { + return get_term( (int) $menu, 'nav_menu'); +} + function wp_get_nav_menus() { return get_terms( 'nav_menu', array( 'hide_empty' => false ) ); } diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 5dfddf4d88..a940ad7a01 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -1126,7 +1126,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget { $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription) ); + wp_nav_menu( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription) ); ?>