[wp-trac] [WordPress Trac] #45749: Add short circuits for multisite classes.
WordPress Trac
noreply at wordpress.org
Sun Dec 23 13:04:24 UTC 2018
#45749: Add short circuits for multisite classes.
--------------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------------
Comment (by spacedmonkey):
There are two way I have gone about this.
1. In [https://core.trac.wordpress.org/attachment/ticket/45749/45749.diff
45749.diff] there are no new filters added. This short circult, would work
by using the existing action `pre_get_sites` which would allow you to
change the class property of site_ids.
2. In
[https://core.trac.wordpress.org/attachment/ticket/45749/45749.1.diff
45749.1.diff] adds a new filter `sites_pre_query` similar to other filters
existing in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45749#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list