Changeset 4404
- Timestamp:
- 10/18/2006 08:24:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r4401 r4404 184 184 185 185 if ( !file_exists("$theme_root/$template/index.php") ) { 186 $wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.')); 187 continue; 186 $parent_dir = dirname(dirname($theme_file)); 187 if ( file_exists("$theme_root/$parent_dir/$template/index.php") ) { 188 $template = "$parent_dir/$template"; 189 } else { 190 $wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.')); 191 continue; 192 } 188 193 } 189 194
Note: See TracChangeset
for help on using the changeset viewer.