[wp-trac] [WordPress Trac] #46313: WordPress 5.1 and $themes backward compatibility break-ish

WordPress Trac noreply at wordpress.org
Fri Feb 22 13:32:03 UTC 2019


#46313: WordPress 5.1 and $themes backward compatibility break-ish
--------------------------+------------------------------
 Reporter:  flexithemes   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  5.1
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by earnjam):

 Looks like the changes to `wp-settings.php` in [44524] stepped on the
 `$theme` global.

 {{{#!php
 <?php
 // Load the functions for the active theme, for both parent and child
 theme if applicable.
 foreach ( wp_get_active_and_valid_themes() as $theme ) {
         if ( file_exists( $theme . '/functions.php' ) ) {
                 include $theme . '/functions.php';
         }
 }
 unset( $theme );
 }}}

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


More information about the wp-trac mailing list