Make WordPress Core

Changeset 14793


Ignore:
Timestamp:
05/21/2010 08:28:11 PM (14 years ago)
Author:
ryan
Message:

Don't look for a fallback menu when a specific location is requested. Props tinkerpriest. see #13378

File:
1 edited

Legend:

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

    r14721 r14793  
    207207
    208208    // get the first menu that has items if we still can't find a menu
    209     if ( ! $menu ) {
     209    if ( ! $menu && !$args->theme_location ) {
    210210        $menus = wp_get_nav_menus();
    211211        foreach ( $menus as $menu_maybe ) {
Note: See TracChangeset for help on using the changeset viewer.