From 049955e49b54b99b9cf455b2ee3f2922b42969c6 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@12124 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 {