buddypress/tests
David Cavins 0f39447a28 Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user().
Data was being deleted in bulk using a direct SQL
query, bypassing the `xprofile_data_before_delete`
and `xprofile_data_after_delete` actions, resulting in
stale data persisting in the xprofile cache. This
change uses `xprofile_delete_field_data()` to delete
the user's data so that the action hooks are called.

Props dd32, r-a-y, imath.

Fixes #8388.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@12781 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2020-11-11 19:23:17 +00:00
..
phpunit Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user(). 2020-11-11 19:23:17 +00:00