mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 11:21:57 +01:00
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
@ -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