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

WordPress Trac noreply at wordpress.org
Tue Jun 3 05:49:08 UTC 2014

#28436: allowed_themes filter does not pass blog_id
 Reporter:  rmccue        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  3.4
 Severity:  normal        |   Keywords:
  Focuses:                |
 The `allowed_themes` does not pass the `$blog_id` parameter into the
 filter, so you can't currently filter based on the site.

 (There's also no filters in `WP_Theme::get_allowed_on_network` or
 `WP_Theme::get_allowed_on_site`, plus the two arrays are combined
 together, so a filter just in `WP_Theme::get_allowed_on_site` would be
 inadequate for blacklisting themes for certain sites.)

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

More information about the wp-trac mailing list