From b1f753ab3f4e969e427a33b7ef6e4356f3d8ecde Mon Sep 17 00:00:00 2001 From: rboren Date: Wed, 8 Dec 2004 21:51:25 +0000 Subject: [PATCH] Define TEMPLATEPATH. Look for footer, sidebar, and header in the template directory for the active theme. git-svn-id: http://svn.automattic.com/wordpress/trunk@1922 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-blog-header.php | 2 +- wp-footer.php | 4 ++-- wp-header.php | 4 ++-- wp-settings.php | 2 ++ wp-sidebar.php | 4 ++-- 5 files changed, 9 insertions(+), 7 deletions(-) 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 @@