Ticket #32781: 32781.2.diff
File 32781.2.diff, 1.1 KB (added by , 10 years ago) |
---|
-
wp-includes/class-wp-customize-nav-menus.php
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 ); -
wp-includes/nav-menu-template.php
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 ) )