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.