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:
parent
9ebb57dafd
commit
6524623a6a
@ -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' ) )
|
||||
|
Loading…
Reference in New Issue
Block a user