WordPress.org

Make WordPress Core

Changeset 15774


Ignore:
Timestamp:
10/11/10 13:21:08 (5 years ago)
Author:
scribu
Message:

Remove redundant call to function_exists() in wp_nav_menu(). Fixes #15094

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu-template.php

    r15772 r15774  
    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 
Note: See TracChangeset for help on using the changeset viewer.