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:
nacin 2010-05-21 19:02:36 +00:00
parent d83dcfc920
commit 8d4a9a7568
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();
}
/**