mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
Fix notice in wp_nav_menu when the menu doesn't exist.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6fe61df60f
commit
c1654c4751
@ -45,7 +45,7 @@ function wp_nav_menu( $args = array() ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( !is_wp_error($menu) )
|
||||
if ( !is_wp_error($menu) && $menu)
|
||||
$args->menu = $menu->term_id;
|
||||
$nav_menu = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user