WordPress.org

Make WordPress Core

Ticket #21534: 21534.2.diff

File 21534.2.diff, 552 bytes (added by nacin, 8 years ago)
  • src/wp-includes/nav-menu-template.php

     
    317317         */
    318318        $sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );
    319319
    320         $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );
     320        $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, (array) $args );
    321321        unset($sorted_menu_items);
    322322
    323323        // Attributes