[wp-trac] [WordPress Trac] #42284: Stop invalid query generation in WP_Site_Query

WordPress Trac noreply at wordpress.org
Thu Oct 19 20:15:10 UTC 2017


#42284: Stop invalid query generation in WP_Site_Query
--------------------------------+------------------------------
 Reporter:  spacedmonkey        |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by spacedmonkey):

 [https://core.trac.wordpress.org/attachment/ticket/42284/42284.diff
 42284.diff]

 This is a first patch. This is not finished as it does have tests.
 Uploaded as a talking point. My work around is move all single values to
 the multi values. This way, all queries are doing a IN search. This should
 have any effect on performance, but will make better results be returned.

 Also notice the placement of the tidy of query, after filter has been run,
 maintaining backwards compatibility.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42284#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list