[wp-trac] [WordPress Trac] #14838: get_theme_root/s refactoring

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 10 18:13:19 UTC 2010


#14838: get_theme_root/s refactoring
-------------------------+--------------------------------------------------
 Reporter:  hakre        |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.0            
 Severity:  normal       |    Keywords:  has-patch close
-------------------------+--------------------------------------------------

Comment(by filosofo):

 {{{
         472             while ( false === ( $theme_roots =
 get_site_transient( 'theme_roots' ) ) )
         473                     get_themes(); // update transient
 }}}

 Isn't this kinda risky?  If something causes the transient getter or
 setter to fail, then you're stuck in an infinite loop.

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


More information about the wp-trac mailing list