Notice sanity check. fixes #13484, props etiger13.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d83dcfc920
commit
8d4a9a7568
|
@ -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