Partial fix for theme subdir support. see #10467
git-svn-id: http://svn.automattic.com/wordpress/trunk@12117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0dd4b4ab9e
commit
b2a6e37519
|
@ -574,7 +574,7 @@ function search_theme_directories() {
|
|||
|
||||
while ( ($theme_file = readdir($stylish_dir)) !== false ) {
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue