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

@@ -1023,7 +1023,7 @@ function get_comments_popup_template() {
// Backward compat code will be removed in a future release
if ('' == $template)
$template = WPINC . '/theme-compat/comments-popup.php';
$template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
return apply_filters('comments_popup_template', $template);
}
@@ -1082,6 +1082,8 @@ function load_template( $_template_file, $require_once = true ) {
if ( is_array( $wp_query->query_vars ) )
extract( $wp_query->query_vars, EXTR_SKIP );
error_log( $_template_file );
if ( $require_once )
require_once( $_template_file );
else