| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | * @param int $depth Depth of the item. |
| 22 | 22 | * @param array $args An array of additional arguments. |
| 23 | 23 | * @param int $current_object_id ID of the current item. |
| 24 | 24 | */ |
| 25 | - public function start_el( &$output, $element, $depth = 0, $args = array(), $current_object_id = 0 ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable | |
| 25 | + public function start_el( &$output, $element, $depth = 0, $args = array(), $current_object_id = 0 ) { | |
| 26 | 26 | $output .= sprintf( |
| 27 | 27 | '%6$s<li class="%1$s"><a lang="%2$s" hreflang="%2$s" href="%3$s">%4$s%5$s</a></li>%7$s', |
| 28 | 28 | esc_attr( implode( ' ', $element->classes ) ), |
| 29 | 29 | esc_attr( $element->locale ), |
| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | * @param int $depth Depth of current element. |
| 47 | 47 | * @param array $args An array of arguments. |
| 48 | 48 | * @param string $output Passed by reference. Used to append additional content. |
| 49 | 49 | */ |
| 50 | - public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { | |
| 50 | + public function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) { | |
| 51 | 51 | $element = (object) $element; // Make sure we have an object |
| 52 | 52 | $element->parent = $element->id = 0; // Don't care about this |
| 53 | 53 | parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); |
| 54 | 54 | } |