From df3932803522c6aae9abdc580186392c9d9f55a2 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sun, 1 May 2022 21:47:10 +0000 Subject: [PATCH] Docs: Clarify the name and description of some parameters in the `Walker` class. Follow-up to [53323]. See #54729. Built from https://develop.svn.wordpress.org/trunk@53324 git-svn-id: http://core.svn.wordpress.org/trunk@52913 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-walker.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index 42331ed2cb..d47d25261f 100644 --- a/wp-includes/class-wp-walker.php +++ b/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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 3f5373315c..ade059b5e3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta3-53323'; +$wp_version = '6.0-beta3-53324'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.