Skip to:
Content

BuddyPress.org

Changeset 7358


Ignore:
Timestamp:
08/27/2013 10:42:12 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add '_before_' action to match '_after_' action in BP_XProfile_ProfileData->delete(). See r7357, #5111.

File:
1 edited

Legend:

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

    r7357 r7358  
    10981098    }
    10991099
     1100    /**
     1101     * Delete specific XProfile field data
     1102     *
     1103     * @global object $wpdb
     1104     * @return boolean
     1105     */
    11001106    public function delete() {
    1101         global $wpdb, $bp;
     1107        global $wpdb;
     1108
     1109        $bp = buddypress();
     1110
     1111        do_action_ref_array( 'xprofile_data_before_delete', array( $this ) );
    11021112
    11031113        if ( !$wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->profile->table_name_data} WHERE field_id = %d AND user_id = %d", $this->field_id, $this->user_id ) ) )
Note: See TracChangeset for help on using the changeset viewer.