diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
index 7fbbda8..eec35ee 100644
|
|
final class WP_Customize_Nav_Menus { |
753 | 753 | $args['instance_number'] = $this->preview_nav_menu_instance_number; |
754 | 754 | |
755 | 755 | $can_partial_refresh = ( |
756 | | $args['echo'] |
| 756 | ! empty( $args['echo'] ) |
757 | 757 | && |
758 | | is_string( $args['fallback_cb'] ) |
| 758 | ( empty( $args['fallback_cb'] ) || is_string( $args['fallback_cb'] ) ) |
759 | 759 | && |
760 | | is_string( $args['walker'] ) |
| 760 | ( empty( $args['walker'] ) || is_string( $args['walker'] ) ) |
761 | 761 | ); |
762 | 762 | $args['can_partial_refresh'] = $can_partial_refresh; |
763 | 763 | |
764 | 764 | if ( ! $can_partial_refresh ) { |
765 | | unset( $args['fallback_cb'] ); |
766 | | unset( $args['walker'] ); |
| 765 | $args['fallback_cb'] = ''; |
| 766 | $args['walker'] = ''; |
767 | 767 | } |
768 | 768 | |
769 | 769 | ksort( $args ); |
diff --git src/wp-includes/nav-menu-template.php src/wp-includes/nav-menu-template.php
index 2bd37a1..3a4192c 100644
|
|
function wp_nav_menu( $args = array() ) { |
308 | 308 | * - Otherwise, bail. |
309 | 309 | */ |
310 | 310 | if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) ) |
311 | | && $args->fallback_cb && is_callable( $args->fallback_cb ) ) |
| 311 | && isset( $args->fallback_cb ) && $args->fallback_cb && is_callable( $args->fallback_cb ) ) |
312 | 312 | return call_user_func( $args->fallback_cb, (array) $args ); |
313 | 313 | |
314 | 314 | if ( ! $menu || is_wp_error( $menu ) ) |