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

@@ -920,7 +920,7 @@ function comments_template( $file = '/comments.php', $separate_comments = false
elseif ( file_exists( TEMPLATEPATH . $file ) )
require( TEMPLATEPATH . $file );
else // Backward compat code will be removed in a future release
require( WPINC . '/theme-compat/comments.php');
require( ABSPATH . WPINC . '/theme-compat/comments.php');
}
/**