[buddypress-trac] [BuddyPress Trac] #5058: Members search - fallback to wp_users table
buddypress-trac
noreply at wordpress.org
Mon Nov 14 00:16:46 UTC 2016
#5058: Members search - fallback to wp_users table
-------------------------+----------------------
Reporter: dcowgill | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Core | Version:
Severity: normal | Resolution: wontfix
Keywords: |
-------------------------+----------------------
Changes (by slaFFik):
* keywords: needs-patch =>
* status: new => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
In title - `wp_users` table, that we do use in search when xprofile is
deactivated (against `user_login` and `user_nicename`). See
`BP_User_Query::prepare_user_ids_query`.
In description you are referring to wp_usermeta, which I think is what you
really meant.
Searching in usermeta might be overkill, because there are lots of
serialized data there, also some data is confidential and should not be
available for search, so some sort of UI or API is required to make search
work only for specific usermeta fields.
I believe, this is a custom plugin (per project) territory, as usermeta
fields to search in should be defined for each site independently, there
is not general rule here.
Also, you can already do that using `bp_user_query_uid_clauses` filter.
See `bp_xprofile_bp_user_query_search()` for an example implementation.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5058#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list