id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 42284,Stop invalid query generation in WP_Site_Query,spacedmonkey,,"In WP_Site_Query, developers have the ability to query by a single value or by multiple using a `__in` param. An example of which is which is `domain` and `domain__in`. Take for example the following query. ` get_sites(['domain' => 'test.local', 'domain__in' => ['lebowski.local', 'start.test.local']]); ` This query will only results for test.local, completely ignoring the `domain__in`. This is because of the query it generates. That looks like this ` domain = 'test.local' AND domain IN ('lebowski.local', 'start.test.local')` Improved error checking must be implemented on this code to stop invalid queries. ",defect (bug),new,normal,Awaiting Review,Networks and Sites,4.6,normal,,,,multisite