From f089f96723d95054596057db9379569d631d0304 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 28 Oct 2009 21:58:15 +0000 Subject: [PATCH] Theme roots are prefixed with a slash. No need to add another. Props hakre. fixes #11036 git-svn-id: http://svn.automattic.com/wordpress/trunk@12124 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index b2e30b0b3c..4de20ca37f 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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 {