mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Fallback to /themes when there is no theme root. Props duck_. see #20919
git-svn-id: https://develop.svn.wordpress.org/trunk@21063 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d0e8e5ca35
commit
46dba7300c
@ -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…
x
Reference in New Issue
Block a user