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:
parent
9df9561ce9
commit
df39328035
|
@ -426,16 +426,16 @@ class Walker {
|
||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param object $e
|
* @param object $element The top level element.
|
||||||
* @param array $children_elements
|
* @param array $children_elements The children elements.
|
||||||
*/
|
*/
|
||||||
public function unset_children( $e, &$children_elements ) {
|
public function unset_children( $element, &$children_elements ) {
|
||||||
if ( ! $e || ! $children_elements ) {
|
if ( ! $element || ! $children_elements ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_field = $this->db_fields['id'];
|
$id_field = $this->db_fields['id'];
|
||||||
$id = $e->$id_field;
|
$id = $element->$id_field;
|
||||||
|
|
||||||
if ( ! empty( $children_elements[ $id ] ) && is_array( $children_elements[ $id ] ) ) {
|
if ( ! empty( $children_elements[ $id ] ) && is_array( $children_elements[ $id ] ) ) {
|
||||||
foreach ( (array) $children_elements[ $id ] as $child ) {
|
foreach ( (array) $children_elements[ $id ] as $child ) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue