Use correct variable. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f173370ae1
commit
d501284378
|
@ -34,7 +34,7 @@ function wp_get_themes( $args = array() ) {
|
|||
$current_theme = get_stylesheet();
|
||||
$root_of_current_theme = get_raw_theme_root( $current_theme );
|
||||
if ( ! in_array( $root_of_current_theme, $wp_theme_directories ) )
|
||||
$root_of_current_theme = WP_CONTENT_DIR . $current_theme_root;
|
||||
$root_of_current_theme = WP_CONTENT_DIR . $root_of_current_theme;
|
||||
$_theme_directories[ $current_theme ]['theme_root'] = $root_of_current_theme;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue