Changeset 15184
- Timestamp:
- 06/09/2010 10:05:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/nav-menu-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu-template.php
r15116 r15184 163 163 $menu_items = wp_get_nav_menu_items( $menu->term_id ); 164 164 165 // If no menu was found or if the menu has no items , call the fallback_cb if it exists166 if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) ) )165 // If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists 166 if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) ) 167 167 && ( function_exists($args->fallback_cb) || is_callable( $args->fallback_cb ) ) ) 168 168 return call_user_func( $args->fallback_cb, (array) $args );
Note: See TracChangeset
for help on using the changeset viewer.