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:
parent
8e076bda03
commit
add01ff78a
|
@ -26,7 +26,11 @@ if (empty($theme)) {
|
||||||
$theme = get_current_theme();
|
$theme = get_current_theme();
|
||||||
} else {
|
} else {
|
||||||
$theme = stripslashes($theme);
|
$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']);
|
$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue