PluginProbe
Polylang / 2.8
Polylang v2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | include/walker-dropdown.php +2 -2 2.9.22.8 View file →
@@ -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 }