mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user