WordPress.org

Make WordPress Core

Changeset 14788


Ignore:
Timestamp:
05/21/2010 07:02:36 PM (8 years ago)
Author:
nacin
Message:

Notice sanity check. fixes #13484, props etiger13.

File:
1 edited

Legend:

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

    r14751 r14788  
    9898 */
    9999function get_registered_nav_menus() {
    100     return $GLOBALS['_wp_registered_nav_menus'];
     100    global $_wp_registered_nav_menus;
     101    if ( isset( $_wp_registered_nav_menus ) )
     102        return $_wp_registered_nav_menus;
     103    return array();
    101104}
    102105
Note: See TracChangeset for help on using the changeset viewer.