diff --git a/wp-blog-header.php b/wp-blog-header.php index 14aa8f3b5..ccb1992d8 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -202,7 +202,7 @@ if ( (0 == count($posts)) && !is_404() && !is_search() $wp_did_header = true; endif; -$wp_template_dir = get_template_directory(); +$wp_template_dir = TEMPLATEPATH; // Template redirection if ($pagenow == 'index.php') { diff --git a/wp-footer.php b/wp-footer.php index c5f5bc4c0..7419d297e 100644 --- a/wp-footer.php +++ b/wp-footer.php @@ -1,8 +1,8 @@ diff --git a/wp-header.php b/wp-header.php index 7e908d765..6366c7ce8 100644 --- a/wp-header.php +++ b/wp-header.php @@ -1,8 +1,8 @@ diff --git a/wp-settings.php b/wp-settings.php index 5f24275bb..2bbba9d85 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -96,6 +96,8 @@ if ( get_settings('active_plugins') ) { } } +define('TEMPLATEPATH', get_template_directory()); + function shutdown_action_hook() { do_action('shutdown', ''); } diff --git a/wp-sidebar.php b/wp-sidebar.php index 1de3f6d33..735dec9a6 100644 --- a/wp-sidebar.php +++ b/wp-sidebar.php @@ -1,8 +1,8 @@