From 569bcc5dad1305c8f938e015a307142d4b6f0190 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 10 Sep 2013 23:30:10 +0000 Subject: [PATCH] Use `wp_get_nav_menus()` instead of `get_terms('nav_menu')` in `WP_Nav_Menu_Widget` to preserve use of `wp_get_nav_menus' filter. Props Frank Klein. Fixes #25263. Built from https://develop.svn.wordpress.org/trunk@25332 git-svn-id: http://core.svn.wordpress.org/trunk@25294 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 69b6608cc0..6c4c3a968a 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -1134,7 +1134,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget { $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : ''; // Get menus - $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) ); + $menus = wp_get_nav_menus( array( 'orderby' => 'name' ) ); // If no menus exists, direct the user to go and create some. if ( !$menus ) {