mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Don't load themes functions.php for upgrades. Props greuben. fixes #16722
git-svn-id: http://svn.automattic.com/wordpress/trunk@17727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c491c77f1d
commit
ff9610e36d
@ -273,10 +273,12 @@ 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 ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
|
||||
include( STYLESHEETPATH . '/functions.php' );
|
||||
if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
|
||||
include( TEMPLATEPATH . '/functions.php' );
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )
|
||||
include( STYLESHEETPATH . '/functions.php' );
|
||||
if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
|
||||
include( TEMPLATEPATH . '/functions.php' );
|
||||
}
|
||||
|
||||
do_action( 'after_setup_theme' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user