Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.
git-svn-id: https://develop.svn.wordpress.org/trunk@16711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9efb88a3ac
commit
368926d657
@ -385,8 +385,8 @@ function get_themes() {
|
||||
$template_files = array_unique($template_files);
|
||||
$stylesheet_files = array_unique($stylesheet_files);
|
||||
|
||||
$template_dir = dirname($template_files[0]);
|
||||
$stylesheet_dir = dirname($stylesheet_files[0]);
|
||||
$template_dir = $template_directory;
|
||||
$stylesheet_dir = $theme_root . '/' . $stylesheet;
|
||||
|
||||
if ( empty($template_dir) )
|
||||
$template_dir = '/';
|
||||
|
Loading…
Reference in New Issue
Block a user