From 59a7f7f015459596274193bfe7b10a873c60fbe3 Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 11 Oct 2010 13:21:08 +0000 Subject: [PATCH] Remove redundant call to function_exists() in wp_nav_menu(). Fixes #15094 git-svn-id: http://svn.automattic.com/wordpress/trunk@15774 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index 988f0d6bd..67d535317 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -168,7 +168,7 @@ function wp_nav_menu( $args = array() ) { // If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) ) - && $args->fallback_cb && ( function_exists($args->fallback_cb) || is_callable( $args->fallback_cb ) ) ) + && $args->fallback_cb && is_callable( $args->fallback_cb ) ) return call_user_func( $args->fallback_cb, (array) $args ); // If no fallback function was specified and the menu doesn't exists, bail.