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:
parent
cea2e6eaa3
commit
65423c7d16
|
@ -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