Changeset 7358
- Timestamp:
- 08/27/2013 10:42:12 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r7357 r7358 1098 1098 } 1099 1099 1100 /** 1101 * Delete specific XProfile field data 1102 * 1103 * @global object $wpdb 1104 * @return boolean 1105 */ 1100 1106 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 ) ); 1102 1112 1103 1113 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.