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:
parent
1992489856
commit
d0b71fc766
@ -624,7 +624,7 @@ function get_theme_root( $stylesheet_or_template = false ) {
|
|||||||
if ($stylesheet_or_template) {
|
if ($stylesheet_or_template) {
|
||||||
$theme_roots = get_theme_roots();
|
$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];
|
$theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template];
|
||||||
else
|
else
|
||||||
$theme_root = WP_CONTENT_DIR . '/themes';
|
$theme_root = WP_CONTENT_DIR . '/themes';
|
||||||
|
Loading…
Reference in New Issue
Block a user