Load the theme's functions.php for wp-activate.php. Props nacin, frumph. fixes #17761

git-svn-id: https://develop.svn.wordpress.org/trunk@18263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-06-11 03:04:04 +00:00
parent 9ebb57dafd
commit 6524623a6a
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ require( ABSPATH . WPINC . '/locale.php' );
$wp_locale = new WP_Locale();
// Load the functions for the active theme, for both parent and child theme if applicable.
if ( ! defined( 'WP_INSTALLING' ) ) {
if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
include( STYLESHEETPATH . '/functions.php' );
if ( file_exists( TEMPLATEPATH . '/functions.php' ) )