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:
parent
3003eee549
commit
5b7ecb587d
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user