[wp-trac] [WordPress Trac] #51333: Assign 'sites_pre_query' and 'networks_pre_query' filter results to the class property
WordPress Trac
noreply at wordpress.org
Thu Sep 17 20:03:29 UTC 2020
#51333: Assign 'sites_pre_query' and 'networks_pre_query' filter results to the
class property
--------------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Networks and Sites | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: multisite |
--------------------------------+----------------------------------------
Background: #45749, #47599, #50521.
[48990] assigns the array of comment data returned from the
`comments_pre_query` filter to the `comments` property of the current
`WP_Comment_Query` instance.
As noted by @spacedmonkey in comment:2:ticket:50521, since
`networks_pre_query` and `sites_pre_query` follow the same pattern, the
same should be done for them:
* The array of network data returned from `networks_pre_query` should be
assigned to the `networks` property of the current `WP_Network_Query`
instance.
* The array of site data returned from `sites_pre_query` should be
assigned to the `sites` property of the current `WP_Site_Query` instance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51333>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list