Fix the theme compat file require paths to be fully absolute so they don't rely on a particular php path to work. Fixes #14315 for trunk props dougal.

git-svn-id: https://develop.svn.wordpress.org/trunk@15433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-07-16 09:40:09 +00:00
parent 666b031fdb
commit 8d72c5172c
3 changed files with 7 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ function get_header( $name = null ) {
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
load_template( WPINC . '/theme-compat/header.php');
load_template( ABSPATH . WPINC . '/theme-compat/header.php');
}
/**
@@ -61,7 +61,7 @@ function get_footer( $name = null ) {
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
load_template( WPINC . '/theme-compat/footer.php');
load_template( ABSPATH . WPINC . '/theme-compat/footer.php');
}
/**
@@ -90,7 +90,7 @@ function get_sidebar( $name = null ) {
// Backward compat code will be removed in a future release
if ('' == locate_template($templates, true))
load_template( WPINC . '/theme-compat/sidebar.php');
load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php');
}
/**