Skip to:
Content

BuddyPress.org

Ticket #7686: 7686.01.patch

File 7686.01.patch, 1.5 KB (added by Offereins, 6 years ago)
  • src/bp-xprofile/classes/class-bp-xprofile-field.php

    diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field.php b/src/bp-xprofile/classes/class-bp-xprofile-field.php
    index ce4a95a..d53f08e 100644
    a b class BP_XProfile_Field { 
    349349                 *
    350350                 * @since 3.0.0
    351351                 *
    352                  * @param BP_XProfile_Field $this Current instance of the field being deleted. Passed by reference.
     352                 * @param BP_XProfile_Field $this        Current instance of the field being deleted. Passed by reference.
     353                 * @param bool              $delete_data Whether or not to delete data.
    353354                 */
    354                 do_action_ref_array( 'xprofile_field_before_delete', array( &$this ) );
     355                do_action_ref_array( 'xprofile_field_before_delete', array( &$this, $delete_data ) );
    355356
    356357                $bp  = buddypress();
    357358                $sql = $wpdb->prepare( "DELETE FROM {$bp->profile->table_name_fields} WHERE id = %d OR parent_id = %d", $this->id, $this->id );
    class BP_XProfile_Field { 
    370371                 *
    371372                 * @since 3.0.0
    372373                 *
    373                  * @param BP_XProfile_Field $this Current instance of the field being deleted. Passed by reference.
     374                 * @param BP_XProfile_Field $this        Current instance of the field being deleted. Passed by reference.
     375                 * @param bool              $delete_data Whether or not to delete data.
    374376                 */
    375                 do_action_ref_array( 'xprofile_field_after_delete', array( &$this ) );
     377                do_action_ref_array( 'xprofile_field_after_delete', array( &$this, $delete_data ) );
    376378
    377379                return true;
    378380        }