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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-06-11 03:04:04 +00:00
parent fcf8586289
commit b863511166
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' ) )