[buddypress-trac] [BuddyPress Trac] #6658: Deleting xProfile field leaves meta behind

buddypress-trac noreply at wordpress.org
Mon Feb 5 15:39:02 UTC 2018


#6658: Deleting xProfile field leaves meta behind
------------------------------------------+--------------------------------
 Reporter:  garrett-eclipse               |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting
Component:  Extended Profile              |  Contributions
 Severity:  normal                        |     Version:  2.3.3
 Keywords:  needs-patch needs-unit-tests  |  Resolution:
------------------------------------------+--------------------------------
Changes (by Offereins):

 * cc: lmoffereins@… (added)


Comment:

 So, deleting metadata is still on the table, right? I'd like to take this
 on, but preferably someone can suggest which way is preferred:

 Deleting metadata...
 * a) with a single `$wpdb` query or
 * b) using `bp_xprofile_delete_meta()` which fires subsequent hooks in
 `delete_metadata`

 when...
 * i) right in `BP_XProfile_Field::delete()` or
 * j) hooked on the `xprofile_field_after_delete` action (since 3.0)?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6658#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list