Ticket #37079: 37079.1.patch
File 37079.1.patch, 821 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/nav-menu.php
621 621 return false; 622 622 } 623 623 624 625 /** 626 * Filters whether to short-circuit the navigation menu items being returned. 627 * 628 * @since 4.6.0 629 * 630 * @param array|null $items An array of menu item post objects to short-circuit with. Default null. 631 * @param object $menu The menu object. 632 * @param array $args An array of arguments used to retrieve menu item objects. 633 */ 634 $items = apply_filters( 'pre_wp_get_nav_menu_items', null, $menu, $args ); 635 636 if ( null !== $items ) { 637 return $items; 638 } 639 624 640 static $fetched = array(); 625 641 626 642 $items = get_objects_in_term( $menu->term_id, 'nav_menu' );