mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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:
parent
85ed3f3a78
commit
b8ecd8058f
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user