Make WordPress Core

Changeset 53324


Ignore:
Timestamp:
05/01/2022 09:45:56 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Clarify the name and description of some parameters in the Walker class.

Follow-up to [53323].
See #54729.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-walker.php

    r53323 r53324  
    427427     * @since 2.7.0
    428428     *
    429      * @param object $e
    430      * @param array  $children_elements
    431      */
    432     public function unset_children( $e, &$children_elements ) {
    433         if ( ! $e || ! $children_elements ) {
     429     * @param object $element           The top level element.
     430     * @param array  $children_elements The children elements.
     431     */
     432    public function unset_children( $element, &$children_elements ) {
     433        if ( ! $element || ! $children_elements ) {
    434434            return;
    435435        }
    436436
    437437        $id_field = $this->db_fields['id'];
    438         $id       = $e->$id_field;
     438        $id       = $element->$id_field;
    439439
    440440        if ( ! empty( $children_elements[ $id ] ) && is_array( $children_elements[ $id ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.