Fix notice for when no menus are located. see #11817

git-svn-id: http://svn.automattic.com/wordpress/trunk@13743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-17 21:34:24 +00:00
parent cea2e6eaa3
commit 65423c7d16
1 changed files with 26 additions and 26 deletions

View File

@ -45,7 +45,7 @@ function wp_nav_menu( $args = array() ) {
}
}
if ( !is_wp_error($menu) && $menu)
if ( $menu && ! is_wp_error( $menu ) )
$args->menu = $menu->term_id;
$nav_menu = '';