Make WordPress Core

Ticket #33218: 33218.patch

File 33218.patch, 775 bytes (added by ocean90, 10 years ago)
  • src/wp-includes/nav-menu-template.php

     
    230230        'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
    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        /**
    240235         * Filter the arguments used to display a navigation menu.