Skip to content

Commit

Permalink
Fix undefined index on menu location
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Licandro committed May 25, 2020
1 parent 17c6d55 commit 1fd6a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function yith_proteo_setup() {
$menu_locations = array_merge( $menu_locations, array( 'primary' => $menu_locations['menu-1'] ) );
$update_menu_locations = true;
}
if ( ! isset( $menu_locations['mobile'] ) ) {
if ( ! isset( $menu_locations['mobile'] ) && isset( $menu_locations['primary'] ) ) {
$menu_locations = array_merge( $menu_locations, array( 'mobile' => $menu_locations['primary'] ) );
$update_menu_locations = true;
}
Expand Down

0 comments on commit 1fd6a26

Please sign in to comment.