Make WordPress Core

Changeset 14415


Ignore:
Timestamp:
05/03/2010 10:03:52 PM (15 years ago)
Author:
nacin
Message:

Bail when there is neither a menu, or a fallback. props ptahdunbar, fixes #13006.

File:
1 edited

Legend:

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

    r14404 r14415  
    221221    }
    222222
     223    // If no fallback function was specified and the menu doesn't exists, bail.
     224    if ( !$menu || is_wp_error($menu) )
     225        return false;
     226
    223227    $nav_menu = '';
    224228    $items = '';
Note: See TracChangeset for help on using the changeset viewer.