| @@ -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 | $value = $args['value']; |
| 27 | 27 | $output .= sprintf( |
| 28 | 28 | "\t" . '<option value="%1$s"%2$s%3$s>%4$s</option>' . "\n", |
| 29 | 29 | esc_attr( $element->$value ), |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | * @param int $depth Depth of current element. |
| 45 | 45 | * @param array $args An array of arguments. |
| 46 | 46 | * @param string $output Passed by reference. Used to append additional content. |
| 47 | 47 | */ |
| 48 | - public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { | |
| 48 | + public function display_element( $element, &$children_elements, $max_depth, $depth = 0, $args, &$output ) { | |
| 49 | 49 | $element = (object) $element; // Make sure we have an object |
| 50 | 50 | $element->parent = $element->id = 0; // Don't care about this |
| 51 | 51 | parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); |
| 52 | 52 | } |