Changeset 23550
- Timestamp:
- 03/01/2013 03:51:16 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/nav-menus.php
r23529 r23550 265 265 $locations = get_registered_nav_menus(); 266 266 $menu_locations = get_nav_menu_locations(); 267 if ( empty( $menu_locations ) || ! is_array( $menu_locations ) )268 $menu_locations = array();269 267 270 268 // Remove menu locations that have been unchecked -
trunk/wp-includes/nav-menu.php
r23416 r23550 128 128 129 129 function get_nav_menu_locations() { 130 return get_theme_mod( 'nav_menu_locations' ); 130 $locations = get_theme_mod( 'nav_menu_locations' ); 131 return ( is_array( $locations ) ) ? $locations : array(); 131 132 } 132 133
Note: See TracChangeset
for help on using the changeset viewer.