Open
Description
Describe the bug
WP_User_Query
Search returns more results than expectation when we search for the user email. For example when I search for [email protected]
, ElasticPress also returns all the user those have gmail.com account
For example
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected] (only this should be returned)
Steps to Reproduce
- Create multiple users.
- Use WP_User_Query and search against any email address.
- EP returns more user than expectation.