diff --git wp-includes/nav-menu.php wp-includes/nav-menu.php
index 9cce24f..1c03ae9 100644
|
|
function wp_get_nav_menu_items( $menu, $args = array() ) { |
608 | 608 | $args['include'] = $items; |
609 | 609 | |
610 | 610 | if ( ! empty( $items ) ) { |
| 611 | /** |
| 612 | * Filters the arguments for the nav menu items get_posts() query. |
| 613 | * |
| 614 | * @since 4.4.0 |
| 615 | * |
| 616 | * @param array $args Description. |
| 617 | * @param string $menu Menu name, ID, or slug. |
| 618 | * @param array $items An array of the object IDs found |
| 619 | */ |
| 620 | $args = apply_filters( 'wp_get_nav_menu_items_args', $args, $menu, $items ); |
611 | 621 | $items = get_posts( $args ); |
612 | 622 | } else { |
613 | 623 | $items = array(); |