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
This commit is contained in:
Sergey Biryukov 2020-11-05 18:44:48 +00:00
parent 31af0afd4f
commit b4a488b650

View File

@ -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 ) {