1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-22 20:56:55 +08:00
buddypress/tests/phpunit/testcases/friends
Mathieu Viet e60e3b38a5 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

See #8844 (trunk)
Closes https://github.com/buddypress/buddypress/pull/68



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13427 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2023-02-23 00:04:36 +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:04:36 +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