Theme roots are prefixed with a slash. No need to add another. Props hakre. fixes #11036

git-svn-id: https://develop.svn.wordpress.org/trunk@12124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-10-28 21:58:15 +00:00
parent ad6346e33d
commit 049955e49b
1 changed files with 2 additions and 2 deletions

View File

@ -612,9 +612,9 @@ function search_theme_directories() {
function get_theme_root( $stylesheet_or_template = false ) {
if ($stylesheet_or_template) {
$theme_roots = get_theme_roots();
if ( $theme_roots[$stylesheet_or_template] )
$theme_root = WP_CONTENT_DIR . '/' . $theme_roots[$stylesheet_or_template];
$theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template];
else
$theme_root = WP_CONTENT_DIR . '/themes';
} else {