[wp-trac] [WordPress Trac] #37922: WP_Site_Query does not have a $join query clause to compact

WordPress Trac noreply at wordpress.org
Fri Sep 2 18:21:23 UTC 2016


#37922: WP_Site_Query does not have a $join query clause to compact
--------------------------------+-----------------------------------
 Reporter:  johnjamesjacoby     |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  has-patch 2nd-opinion
  Focuses:  multisite           |
--------------------------------+-----------------------------------
 The new `WP_Site_Query` class tries to `compact()` the `join` variable,
 which will never exist because there are no related tables to join
 against.

 Recommend we either:
 * Add `join` clause & `$join = '';` to `get_site_ids()`
 * Remove `join` from `compact()` statement

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37922>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list