Fix potential notice. props hakre, see #12283

git-svn-id: http://svn.automattic.com/wordpress/trunk@13225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-02-19 15:04:46 +00:00
parent 85ed3f3a78
commit b8ecd8058f
1 changed files with 1 additions and 1 deletions

View File

@ -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';