From d4c5f9b0cdad872a4c8289390d1628ce9e41369f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 2 Jun 2010 16:31:42 +0000 Subject: [PATCH] wp_get_nav_menus filter. Props filosofo. fixes #13702 git-svn-id: http://svn.automattic.com/wordpress/trunk@15112 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index a61df839fe..79154c2da7 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -395,7 +395,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item function wp_get_nav_menus( $args = array() ) { $defaults = array( 'hide_empty' => false, 'orderby' => 'none' ); $args = wp_parse_args( $args, $defaults ); - return get_terms( 'nav_menu', $args); + return apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu', $args), $args ); } /**