WordPress.org

Make WordPress Core

Ticket #33955: 33955_1.patch

File 33955_1.patch, 621 bytes (added by sebastian.pisula, 6 years ago)
  • wp-includes/nav-menu.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    555555        $args = wp_parse_args( $args, $defaults );
    556556        $args['include'] = $items;
    557557
    558         $items = get_posts( $args );
     558        $items = get_posts( apply_filters( 'wp_get_nav_menu_items_args', $args, $menu, $items ) );
    559559
    560560        if ( is_wp_error( $items ) || ! is_array( $items ) )
    561561                return false;