members search issue with Spam user (fix ready)
-
Hi,
members/users search result count include spam users, see this image
When mark a user as spam, he should not show on search and should see “nothing found”.
after diagnosis I found it related to BuddyPress custom Profile Fields (no problem with default fields (Username, Display Name and Email)
I’m a developer and I added the fix to a client site, just to make sure it will exist in your next version :
– File : buddypress-global-search/includes/search-types/class.BBoss_Global_Search_Members.php– Fix on line number 77 (
$WHERE[] = "1=1";
) changed to :
$WHERE[] = "1=1 AND " . bp_core_get_status_sql( 'u.' );
Thanks!
https://www.ads-software.com/plugins/buddypress-global-search/
- The topic ‘members search issue with Spam user (fix ready)’ is closed to new replies.