[wp-trac] [WordPress Trac] #43228: register_theme_directory() needs to delete the `theme_roots` transient
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Mar  6 07:06:23 UTC 2018
    
    
  
#43228: register_theme_directory() needs to delete the `theme_roots` transient
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  Themes                    |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Comment (by gitlost):
 The call to `wp_clean_themes_cache()` shouldn't be done on installing I
 think, so need somthing like
 {{{
         if ( ! wp_installing() ) {
                 wp_clean_themes_cache();
         }
 }}}
 otherwise get WordPress database error notices from `wpdb`, see https
 ://travis-ci.org/wp-cli/wp-cli/jobs/349573438
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43228#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list