mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Customizer: Avoid PHP notices after [32806].
props adamsilverstein, westonruter. fixes #32781. git-svn-id: https://develop.svn.wordpress.org/trunk@33035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -308,7 +308,7 @@ function wp_nav_menu( $args = array() ) {
|
||||
* - Otherwise, bail.
|
||||
*/
|
||||
if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
|
||||
&& $args->fallback_cb && is_callable( $args->fallback_cb ) )
|
||||
&& isset( $args->fallback_cb ) && $args->fallback_cb && is_callable( $args->fallback_cb ) )
|
||||
return call_user_func( $args->fallback_cb, (array) $args );
|
||||
|
||||
if ( ! $menu || is_wp_error( $menu ) )
|
||||
|
||||
Reference in New Issue
Block a user