@@ -167,8 +167,9 @@ |
||
167 | 167 | public function get_menu_location( $location ) { |
168 | 168 | |
169 | 169 | $locations = get_nav_menu_locations(); |
170 | - if ( ! isset( $locations[ $location ] ) ) |
|
171 | - return array(); |
|
170 | + if ( ! isset( $locations[ $location ] ) ) { |
|
171 | + return array(); |
|
172 | + } |
|
172 | 173 | |
173 | 174 | $wp_menu = wp_get_nav_menu_object( $locations[ $location ] ); |
174 | 175 | $menu_items = wp_get_nav_menu_items( $wp_menu->term_id ); |