wp_get_nav_menus filter. Props filosofo. fixes #13702

git-svn-id: http://svn.automattic.com/wordpress/trunk@15112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-02 16:31:42 +00:00
parent a161f9bdcd
commit d4c5f9b0cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**