Ticket #27735: 27735.2.patch
File 27735.2.patch, 549 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/nav-menu.php
142 142 * @return bool Whether location has a menu. 143 143 */ 144 144 function has_nav_menu( $location ) { 145 global $_wp_registered_nav_menus; 146 147 if ( ! isset( $_wp_registered_nav_menus[ $location ] ) ) { 145 $registered_nav_menus = get_registered_nav_menus(); 146 if ( ! isset( $registered_nav_menus[ $location ] ) ) { 148 147 return false; 149 148 } 150 149