mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user