mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user