Fix notice for when no menus are located. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2256bb9a70
commit
6eb9146145
@ -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 = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user