diff --git a/wp-blog-header.php b/wp-blog-header.php index 14aa8f3b56..ccb1992d82 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 c5f5bc4c08..7419d297e3 100644 --- a/wp-footer.php +++ b/wp-footer.php @@ -1,8 +1,8 @@ diff --git a/wp-header.php b/wp-header.php index 7e908d7657..6366c7ce8b 100644 --- a/wp-header.php +++ b/wp-header.php @@ -1,8 +1,8 @@ diff --git a/wp-settings.php b/wp-settings.php index 5f24275bb8..2bbba9d857 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 1de3f6d332..735dec9a6d 100644 --- a/wp-sidebar.php +++ b/wp-sidebar.php @@ -1,8 +1,8 @@