Make WordPress Core

Ticket #13702: filter-get-nav-menus.13702.diff

File filter-get-nav-menus.13702.diff, 506 bytes (added by filosofo, 14 years ago)
  • wp-includes/nav-menu.php

     
    395395function wp_get_nav_menus( $args = array() ) {
    396396        $defaults = array( 'hide_empty' => false, 'orderby' => 'none' );
    397397        $args = wp_parse_args( $args, $defaults );
    398         return get_terms( 'nav_menu',  $args);
     398        return apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu',  $args), $args );
    399399}
    400400
    401401/**