File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ function timer_start() {
202202
203203validate_current_theme ();
204204define ('TEMPLATEPATH ' , get_template_directory ());
205+ define ('STYLESHEETPATH ' , get_stylesheet_directory ());
205206
206207// Load the default text localization domain.
207208load_default_textdomain ();
@@ -212,8 +213,10 @@ function timer_start() {
212213$ wp_locale = new WP_Locale ();
213214
214215// Load functions for active theme.
215- if ( file_exists (TEMPLATEPATH . "/functions.php " ) )
216- include (TEMPLATEPATH . "/functions.php " );
216+ if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists (STYLESHEETPATH . '/functions.php ' ) )
217+ include (STYLESHEETPATH . '/functions.php ' );
218+ if ( file_exists (TEMPLATEPATH . '/functions.php ' ) )
219+ include (TEMPLATEPATH . '/functions.php ' );
217220
218221function shutdown_action_hook () {
219222 do_action ('shutdown ' );
You can’t perform that action at this time.
0 commit comments