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
This commit is contained in:
parent
cd8071e7ce
commit
f089f96723
|
@ -614,7 +614,7 @@ function get_theme_root( $stylesheet_or_template = false ) {
|
||||||
$theme_roots = get_theme_roots();
|
$theme_roots = get_theme_roots();
|
||||||
|
|
||||||
if ( $theme_roots[$stylesheet_or_template] )
|
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
|
else
|
||||||
$theme_root = WP_CONTENT_DIR . '/themes';
|
$theme_root = WP_CONTENT_DIR . '/themes';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue