mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fallback to /themes when there is no theme root. Props duck_. see #20919
git-svn-id: http://core.svn.wordpress.org/trunk@21063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbb1494919
commit
efa75c5c96
@ -98,7 +98,7 @@ function wp_get_theme( $stylesheet = null, $theme_root = null ) {
|
||||
if ( empty( $theme_root ) ) {
|
||||
$theme_root = get_raw_theme_root( $stylesheet );
|
||||
if ( false === $theme_root )
|
||||
$theme_root = WP_CONTENT_DIR . $theme_root;
|
||||
$theme_root = WP_CONTENT_DIR . '/themes';
|
||||
elseif ( ! in_array( $theme_root, (array) $wp_theme_directories ) )
|
||||
$theme_root = WP_CONTENT_DIR . $theme_root;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user