From 50add1e31b105e51a110331cd262a6abeb452e0d Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sun, 1 May 2022 21:45:56 +0000 Subject: [PATCH] Docs: Clarify the name and description of some parameters in the `Walker` class. Follow-up to [53323]. See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@53324 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-walker.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/class-wp-walker.php b/src/wp-includes/class-wp-walker.php index 42331ed2cb..d47d25261f 100644 --- a/src/wp-includes/class-wp-walker.php +++ b/src/wp-includes/class-wp-walker.php @@ -426,16 +426,16 @@ class Walker { * * @since 2.7.0 * - * @param object $e - * @param array $children_elements + * @param object $element The top level element. + * @param array $children_elements The children elements. */ - public function unset_children( $e, &$children_elements ) { - if ( ! $e || ! $children_elements ) { + public function unset_children( $element, &$children_elements ) { + if ( ! $element || ! $children_elements ) { return; } $id_field = $this->db_fields['id']; - $id = $e->$id_field; + $id = $element->$id_field; if ( ! empty( $children_elements[ $id ] ) && is_array( $children_elements[ $id ] ) ) { foreach ( (array) $children_elements[ $id ] as $child ) {