mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
4cfee4c129
commit
50add1e31b
@ -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 ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user