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:
parent
ad6346e33d
commit
049955e49b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user