Bail if the theme does not exist.

git-svn-id: https://develop.svn.wordpress.org/trunk@2553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-04-19 21:41:35 +00:00
parent a1ac3e7120
commit 9d8f012f32
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']);