1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/tests/phpunit/testcases/friends
Mathieu Viet d0ce6e0ce3 Improve comparison consistency in BP_Friends_Friendship
- Fix a bug introduced in [13092] making sure to cast IDs retrieved by `$wpdb->results()` as integers when comparing them to another integer (user ID).
- Use strong comparisons everywhere in the class.
- Add unit tests.

Props boonebgorges

Fixes #8844 (branch 11.0)



git-svn-id: https://buddypress.svn.wordpress.org/branches/11.0@13430 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2023-02-23 00:43:14 +00:00
..
activity.php Don't delete user data on delete_user hook on Multisite. 2020-03-29 17:32:05 +00:00
class-bp-friends-friendship.php Improve comparison consistency in BP_Friends_Friendship 2023-02-23 00:43:14 +00:00
functions.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
notifications.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00