diff --git a/wp-includes/theme.php b/wp-includes/theme.php index d71ed4443c..db7b0a2c72 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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; }