@@ -43,9 +43,11 @@ |
||
43 | 43 | |
44 | 44 | if ( is_numeric( $arg ) && 0 !== absint( $arg ) ) { |
45 | 45 | $menu_id = $this->check_menu_id( $arg ); |
46 | - } elseif ( is_string( $arg ) ) { |
|
46 | + } |
|
47 | + elseif ( is_string( $arg ) ) { |
|
47 | 48 | $menu_id = $this->get_menu_id_by_name( $arg ); |
48 | - } elseif ( is_array( $locations ) && count( $locations ) ) { |
|
49 | + } |
|
50 | + elseif ( is_array( $locations ) && count( $locations ) ) { |
|
49 | 51 | $menu_id = $this->get_locations_menu_id( $locations, $arg ); |
50 | 52 | } |
51 | 53 |