Partial fix for theme subdir support. see #10467
git-svn-id: https://develop.svn.wordpress.org/trunk@12117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e35b179907
commit
a0f9bea8cb
|
@ -574,7 +574,7 @@ function search_theme_directories() {
|
||||||
|
|
||||||
while ( ($theme_file = readdir($stylish_dir)) !== false ) {
|
while ( ($theme_file = readdir($stylish_dir)) !== false ) {
|
||||||
if ( $theme_file == 'style.css' ) {
|
if ( $theme_file == 'style.css' ) {
|
||||||
$theme_files[$theme_dir] = array( 'theme_file' => $subdir_name . '/' . $theme_dir . '/' . $theme_file, 'theme_root' => $theme_root );
|
$theme_files["$theme_dir/$theme_subdir"] = array( 'theme_file' => $subdir_name . '/' . $theme_subdir . '/' . $theme_file, 'theme_root' => $theme_root );
|
||||||
$found_stylesheet = true;
|
$found_stylesheet = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue