Ticket #3048: load-both-functions.diff
| File load-both-functions.diff, 877 bytes (added by , 20 years ago) |
|---|
-
wp-settings.php
202 202 203 203 validate_current_theme(); 204 204 define('TEMPLATEPATH', get_template_directory()); 205 define('STYLESHEETPATH', get_stylesheet_directory()); 205 206 206 207 // Load the default text localization domain. 207 208 load_default_textdomain(); … … 212 213 $wp_locale = new WP_Locale(); 213 214 214 215 // 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'); 217 220 218 221 function shutdown_action_hook() { 219 222 do_action('shutdown');