Make WordPress Core

Changeset 33585


Ignore:
Timestamp:
08/04/2015 09:56:57 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Restore default fallback_cb arg for wp_nav_menu() calls in customizer preview.

Props ocean90, westonruter.
Fixes #33218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu-template.php

    r33103 r33585  
    231231    'depth' => 0, 'walker' => '', 'theme_location' => '' );
    232232
    233     // Prevent a fallback_cb in Customizer Preview to assist with has_nav_menu() and partial refresh.
    234     if ( is_customize_preview() ) {
    235         $defaults['fallback_cb'] = '';
    236     }
    237 
    238233    $args = wp_parse_args( $args, $defaults );
    239234    /**
Note: See TracChangeset for help on using the changeset viewer.