Fix potential notice. props hakre, see #12283

git-svn-id: https://develop.svn.wordpress.org/trunk@13225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-02-19 15:04:46 +00:00
parent 1992489856
commit d0b71fc766
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';