[wp-trac] [WordPress Trac] #28436: allowed_themes filter does not pass blog_id

WordPress Trac noreply at wordpress.org
Wed Jan 20 06:15:13 UTC 2016


#28436: allowed_themes filter does not pass blog_id
--------------------------------------+-------------------------
 Reporter:  rmccue                    |       Owner:  jeremyfelt
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.5
Component:  Themes                    |     Version:  3.4
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
--------------------------------------+-------------------------

Comment (by jeremyfelt):

 In [attachment:28436.5.diff] using these:

 * `allowed_themes` is legacy and used to filter network allowed themes
 directly via `WP_Theme::get_allowed_on_network()`.
 * `network_allowed_themes` is new in `WP_Theme::get_allowed()` and filters
 what is received from `WP_Theme::get_allowed_on_network()` before
 combining that result with site results.
 * `site_allowed_themes` can be used to filter site allowed themes via
 `WP_Theme::get_allowed_on_site()`. These results are combined with network
 allowed themes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28436#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list