@@ -36,9 +36,11 @@ |
||
36 | 36 | |
37 | 37 | if ( is_numeric( $arg ) && 0 !== absint( $arg ) ) { |
38 | 38 | $menu_id = $this->check_menu_id( $arg ); |
39 | - } elseif ( is_array( $locations ) && count( $locations ) ) { |
|
39 | + } |
|
40 | + elseif ( is_array( $locations ) && count( $locations ) ) { |
|
40 | 41 | $menu_id = $this->get_locations_menu_id( $locations, $arg ); |
41 | - } elseif ( is_string( $arg ) ) { |
|
42 | + } |
|
43 | + elseif ( is_string( $arg ) ) { |
|
42 | 44 | $menu_id = $this->get_menu_id_by_name( $arg ); |
43 | 45 | } |
44 | 46 |