Changeset 13020
- Timestamp:
- 02/07/2010 11:19:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r13019 r13020 298 298 } 299 299 300 $parent_template = $template; 301 300 302 if ( empty($template) ) { 301 303 if ( file_exists("$theme_root/$stylesheet/index.php") ) … … 320 322 $template_directory = $theme_files[$template]['theme_root'] . "/$template"; 321 323 } else { 322 $wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.')); 324 if ( empty( $parent_template) ) 325 $wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.'), 'error' => 'no_template'); 326 else 327 $wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => sprintf( __('The parent theme is missing. Please install the "%s" parent theme.'), $parent_template ), 'error' => 'no_parent', 'parent' => $parent_template ); 323 328 continue; 324 329 }
Note: See TracChangeset
for help on using the changeset viewer.