Skip to:
Content

BuddyPress.org

Changeset 11845


Ignore:
Timestamp:
02/05/2018 10:01:53 AM (6 years ago)
Author:
offereins
Message:

XProfile: add context to filtering a profile field's children.

Adds the this context parameter to the bp_xprofile_field_get_children
filter in BP_XProfile_Field::get_children().

Fixes #7685.

Signed-off-by: Laurens Offereins <lmoffereins@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r11808 r11845  
    574574         *
    575575         * @since 1.2.5
     576         * @since 3.0.0 Added the `$this` parameter.
    576577         *
    577          * @param object $children    Found children for a field.
    578          * @param bool   $for_editing Whether or not the field is for editing.
     578         * @param object            $children    Found children for a field.
     579         * @param bool              $for_editing Whether or not the field is for editing.
     580         * @param BP_XProfile_Field $this        Field object
    579581         */
    580         return apply_filters( 'bp_xprofile_field_get_children', $children, $for_editing );
     582        return apply_filters( 'bp_xprofile_field_get_children', $children, $for_editing, $this );
    581583    }
    582584
Note: See TracChangeset for help on using the changeset viewer.