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

WordPress Trac noreply at wordpress.org
Wed Jun 4 14:44:52 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 rmccue):

 Replying to [comment:2 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.)

 Indeed, `@since MU`

 > 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().

 Agreed. :) We should add a filter to `get_allowed_on_site` as well as one
 for the combined value from `get_allowed`.

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


More information about the wp-trac mailing list