buddypress/tests/testcases
Boone B Gorges 92562d5f5c Prevent BP_User_Query from fetching spam users on alphabetical sort
BP_User_Query's 'alphabetical' sort type, in contrast to the other values of
'type', does not look at users' last_activity usermeta value. As a result, it
cannot infer spam/deleted/activated status in the same way as the other 'type'
values. To prevent spammed/deleted/unactivated users from being returned on
alphabetical sorts, we do a subquery that limits results to user_status = 0.

Fixes #5114

Props sbrajesh, imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7638 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2013-12-02 20:49:29 +00:00
..
activity Allow 0 to be stored in activitymeta 2013-11-15 21:08:20 +00:00
admin In BP_UnitTestCase::create_user(), default to last_activity one year ago 2013-06-07 11:16:17 +00:00
blogs In blogs tests, reset current user after testcases 2013-06-07 11:22:26 +00:00
core Prevent BP_User_Query from fetching spam users on alphabetical sort 2013-12-02 20:49:29 +00:00
friends Fake some critical globals when running unit tests that touch wp_mail() 2013-11-02 17:49:35 +00:00
groups Set missing variable in BP_Groups_Group test 2013-11-15 20:57:01 +00:00
members Fake some critical globals when running unit tests that touch wp_mail() 2013-11-02 17:49:35 +00:00
routing Avoid E_STRICT warning when running activity test 2013-11-02 17:51:43 +00:00
url Fixes test_bp_core_ajax_url() for new multisite unit test global manipulation 2013-05-13 14:25:08 +00:00
xprofile Sanitize more gently in component *_update_meta() functions 2013-10-23 18:47:16 +00:00