From d0b71fc766487445053a22b3aea2b089d1763cb1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 19 Feb 2010 15:04:46 +0000 Subject: [PATCH] Fix potential notice. props hakre, see #12283 git-svn-id: https://develop.svn.wordpress.org/trunk@13225 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 eb3a4be051..141e3012c2 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -624,7 +624,7 @@ function get_theme_root( $stylesheet_or_template = false ) { if ($stylesheet_or_template) { $theme_roots = get_theme_roots(); - if ( $theme_roots[$stylesheet_or_template] ) + if ( ! empty( $theme_roots[$stylesheet_or_template] ) ) $theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template]; else $theme_root = WP_CONTENT_DIR . '/themes';