WordPress.org

Make WordPress Core

Ticket #17761: 17761.2.diff

File 17761.2.diff, 618 bytes (added by nacin, 3 years ago)
  • wp-settings.php

     
    273273$wp_locale = new WP_Locale(); 
    274274 
    275275// Load the functions for the active theme, for both parent and child theme if applicable. 
    276 if ( ! defined( 'WP_INSTALLING' ) ) { 
     276if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) { 
    277277        if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) ) 
    278278                include( STYLESHEETPATH . '/functions.php' ); 
    279279        if ( file_exists( TEMPLATEPATH . '/functions.php' ) )