From efa75c5c96517495c7cbe138929e3868723e33f2 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 12 Jun 2012 15:57:11 +0000 Subject: [PATCH] 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 --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }