[wp-trac] [WordPress Trac] #28436: allowed_themes filter does not pass blog_id
WordPress Trac
noreply at wordpress.org
Wed Jan 20 18:28:35 UTC 2016
#28436: allowed_themes filter does not pass blog_id
--------------------------------------+-------------------------
Reporter: rmccue | Owner: jeremyfelt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.5
Component: Themes | Version: 3.4
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses: multisite
--------------------------------------+-------------------------
Changes (by jeremyfelt):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"36366"]:
{{{
#!CommitTicketReference repository="" revision="36366"
Themes: Enhance filtering options for allowed themes on a network.
* Move the legacy `allowed_themes` filter to
`WP_Theme::get_allowed_on_network()`, where it will continue to filter
themes allowed on the network.
* Add `network_allowed_themes` filter to `WP_Theme::get_allowed()` and
pass `$blog_id` to provide context.
* Add `site_allowed_themes` filter to `WP_Theme::get_allowed_on_site()`
and pass `$blog_id` to provide context.
Props pauldewouters, lamosty, michalzuber, dmsnell, johnnypea, rob.
Fixes #28436.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28436#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list