Bail if the theme does not exist.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-04-19 21:41:35 +00:00
parent 8e076bda03
commit add01ff78a
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ if (empty($theme)) {
$theme = get_current_theme();
} else {
$theme = stripslashes($theme);
}
}
if ( ! isset($themes[$theme]) )
die(__('The requested theme does not exist.'));
$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);