Skip to content

Commit

Permalink
Load the theme's functions.php for wp-activate.php. Props nacin, frum…
Browse files Browse the repository at this point in the history
…ph. fixes #17761

git-svn-id: http://svn.automattic.com/wordpress/trunk@18263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jun 11, 2011
1 parent fcf8586 commit b863511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
$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' ) )
Expand Down

0 comments on commit b863511

Please sign in to comment.