1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-21 20:54:17 +08:00
buddypress/tests/phpunit/testcases/xprofile
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
..
BP_XProfile_Field Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
activity.php Use shared fixtures in BP_Tests_XProfile_Activity. 2020-03-28 21:20:46 +00:00
cache.php Activity & Tests: fix typos in inline comments 2020-01-11 13:46:16 +00:00
class-bp-xprofile-field-type.php Remove 'whitelist' language from xProfile component. 2020-07-31 14:26:24 +00:00
class-bp-xprofile-field.php XProfile: delete field metadata when a field is deleted 2018-02-07 07:04:13 +00:00
class-bp-xprofile-group.php XProfile: Add caching to group and field queries. 2018-12-07 18:41:16 +00:00
class-bp-xprofile-profiledata.php Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user(). 2020-11-11 19:23:17 +00:00
class-bp-xprofile-query.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
filters.php Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00
functions.php Don't delete user data on delete_user hook on Multisite. 2020-03-29 17:32:05 +00:00