WordPress.org

Make WordPress Core

Ticket #15094: 15094.diff

File 15094.diff, 787 bytes (added by scribu, 8 years ago)
  • wp-includes/nav-menu-template.php

     
    168168
    169169        // If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists
    170170        if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
    171                 && $args->fallback_cb && ( function_exists($args->fallback_cb) || is_callable( $args->fallback_cb ) ) )
     171                && $args->fallback_cb && is_callable( $args->fallback_cb ) )
    172172                        return call_user_func( $args->fallback_cb, (array) $args );
    173173
    174174        // If no fallback function was specified and the menu doesn't exists, bail.