Changeset 33035
- Timestamp:
- 07/01/2015 07:07:20 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r32895 r33035 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 -
trunk/src/wp-includes/nav-menu-template.php
r32803 r33035 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
Note: See TracChangeset
for help on using the changeset viewer.