[wp-trac] [WordPress Trac] #22336: WP_Theme::get_allowed_on_site() function doesn't work for other blogs

WordPress Trac noreply at wordpress.org
Wed Oct 31 20:39:49 UTC 2012


#22336: WP_Theme::get_allowed_on_site() function doesn't work for other blogs
--------------------------+------------------------------
 Reporter:  npetetin      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.4.2
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by npetetin):

 My mistake, you're perfectly right. I've been a bit fast in my
 troubleshooting.

 However, there's definitely an issue with the new 3.4 implementation. Why
 using the static $allowed_themes? For caching purpose? If yes, options and
 blog options are already fully cached, aren't they?

 The issue is that with this additional "caching system", the calls to
 'get_option' and 'get_blog_option' are bypassed and then filters are not
 applied anymore. If for any good reason a plugin adds a filter on
 'allowed_themes' option after the static function is called for the first
 time, the result is never filtered, am I wrong?

 Thanks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22336#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list