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
This commit is contained in:
audrasjb 2022-05-01 21:47:10 +00:00
parent 9df9561ce9
commit df39328035
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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.