From 46dba7300c647343b807511c8c4f9b775334d7b7 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@21063 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; }