diff --git src/wp-settings.php src/wp-settings.php
index b54d6f39d9..8d1f43eadb 100644
|
|
$GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher(); |
474 | 474 | $GLOBALS['wp_locale_switcher']->init(); |
475 | 475 | |
476 | 476 | // Load the functions for the active theme, for both parent and child theme if applicable. |
477 | | foreach ( wp_get_active_and_valid_themes() as $theme ) { |
478 | | if ( file_exists( $theme . '/functions.php' ) ) { |
479 | | include $theme . '/functions.php'; |
| 477 | foreach ( wp_get_active_and_valid_themes() as $active_theme ) { |
| 478 | if ( file_exists( $active_theme . '/functions.php' ) ) { |
| 479 | include $active_theme . '/functions.php'; |
480 | 480 | } |
481 | 481 | } |
482 | | unset( $theme ); |
| 482 | unset( $active_theme ); |
483 | 483 | |
484 | 484 | /** |
485 | 485 | * Fires after the theme is loaded. |