#37922 closed defect (bug) (fixed)
WP_Site_Query does not have a $join query clause to compact
| Reported by: | johnjamesjacoby | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | multisite |
Description
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
joinclause &$join = '';toget_site_ids() - Remove
joinfromcompact()statement
Attachments (2)
Change History (9)
#2
@
10 years ago
I would say we add it in as empty as developers filtering the clauses may expect the key to exist. It also looks a bit more future-proof that way.
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
10 years ago
#4
@
10 years ago
- Keywords commit added; 2nd-opinion removed
- Milestone Awaiting Review → 4.7
This can be committed, using the first patch.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Add