From b4a488b650e2d5d58f9c0519ba4a8d9d655cd889 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Nov 2020 18:44:48 +0000 Subject: [PATCH] Docs: Fix typo in a comment in `Walker::display_element()`. Props david.binda, sabernhardt. Fixes #51713. git-svn-id: https://develop.svn.wordpress.org/trunk@49509 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-walker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-walker.php b/src/wp-includes/class-wp-walker.php index 1a093cdd46..13c0b23429 100644 --- a/src/wp-includes/class-wp-walker.php +++ b/src/wp-includes/class-wp-walker.php @@ -143,7 +143,7 @@ class Walker { $this->start_el( $output, $element, $depth, ...array_values( $args ) ); - // Descend only when the depth is right and there are childrens for this element. + // Descend only when the depth is right and there are children for this element. if ( ( 0 == $max_depth || $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) { foreach ( $children_elements[ $id ] as $child ) {