Ticket #4515: theme.php.patch
File theme.php.patch, 608 bytes (added by , 17 years ago) |
---|
-
wp-includes/theme.php
460 460 do_action('switch_theme', 'Default'); 461 461 return false; 462 462 } 463 463 if ( get_stylesheet() == 'default' && !file_exists(get_template_directory() . '/index.php')){ 464 wp_die('WordPress cannot find the default theme. You may have chosen to use this theme or WordPress may have selected it since the chosen theme could not be found. Please make sure that the default theme is installed.'); 465 } 464 466 return true; 465 467 } 466 468