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:
ryan 2012-06-12 15:57:11 +00:00
parent bbb1494919
commit efa75c5c96
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ function wp_get_theme( $stylesheet = null, $theme_root = null ) {
if ( empty( $theme_root ) ) { if ( empty( $theme_root ) ) {
$theme_root = get_raw_theme_root( $stylesheet ); $theme_root = get_raw_theme_root( $stylesheet );
if ( false === $theme_root ) 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 ) ) elseif ( ! in_array( $theme_root, (array) $wp_theme_directories ) )
$theme_root = WP_CONTENT_DIR . $theme_root; $theme_root = WP_CONTENT_DIR . $theme_root;
} }