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:
parent
a1ac3e7120
commit
9d8f012f32
@ -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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user