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

WordPress Trac noreply at wordpress.org
Tue Jun 3 15:26:40 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by nacin):

 I'd have to go back into the ticket and older code to jog my memory on
 this, but the current 'allowed_themes' filter is likely explicitly applied
 to the network list of themes only, for backwards compatibility reasons.
 (It's an old filter.) Expanding it to what is allowed on a site could be
 problematic, depending on how people are using it.

 Off the top of my head, we should probably shift the 'allowed_themes'
 filter into ::get_allowed_on_network() and add a new filter to
 get_allowed().

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


More information about the wp-trac mailing list