mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix handling of stylesheet only themes that live two-levels deep.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5aeac330dc
commit
fa133a0fce
@ -183,8 +183,13 @@ function get_themes() {
|
||||
$template = trim($template);
|
||||
|
||||
if ( !file_exists("$theme_root/$template/index.php") ) {
|
||||
$wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.'));
|
||||
continue;
|
||||
$parent_dir = dirname(dirname($theme_file));
|
||||
if ( file_exists("$theme_root/$parent_dir/$template/index.php") ) {
|
||||
$template = "$parent_dir/$template";
|
||||
} else {
|
||||
$wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.'));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$stylesheet_files = array();
|
||||
|
Loading…
Reference in New Issue
Block a user