Ticket #18232: 18232.patch
File 18232.patch, 870 bytes (added by , 12 years ago) |
---|
-
wp-includes/nav-menu-template.php
169 169 170 170 // If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists 171 171 if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) ) 172 && $args->fallback_cb && is_callable( $args->fallback_cb ) ) 172 && $args->fallback_cb && is_callable( $args->fallback_cb ) ) { 173 if ( 'wp_page_menu' == $args->fallback_cb ) 174 $args->walker = ''; 175 173 176 return call_user_func( $args->fallback_cb, (array) $args ); 177 } 174 178 175 179 // If no fallback function was specified and the menu doesn't exists, bail. 176 180 if ( !$menu || is_wp_error($menu) )