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-list.php +2 -2 2.92.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 $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 }