Notice sanity check. fixes #13484, props etiger13.

git-svn-id: https://develop.svn.wordpress.org/trunk@14788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-21 19:02:36 +00:00
parent 3003eee549
commit 5b7ecb587d
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ function register_nav_menu( $location, $description ) {
* @return array
*/
function get_registered_nav_menus() {
return $GLOBALS['_wp_registered_nav_menus'];
global $_wp_registered_nav_menus;
if ( isset( $_wp_registered_nav_menus ) )
return $_wp_registered_nav_menus;
return array();
}
/**