Use wp_die(). Props filosofo. fixes #2914

git-svn-id: https://develop.svn.wordpress.org/trunk@3985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-07-05 22:00:03 +00:00
parent 4562fd2b74
commit 0b25954d38
27 changed files with 87 additions and 87 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ if (empty($theme)) {
if ( ! isset($themes[$theme]) )
die(__('The requested theme does not exist.'));
wp_die(__('The requested theme does not exist.'));
$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
@@ -36,7 +36,7 @@ case 'update':
check_admin_referer('edit-theme_' . $file . $theme);
if ( !current_user_can('edit_themes') )
die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
$newcontent = stripslashes($_POST['newcontent']);
$theme = urlencode($theme);
@@ -57,7 +57,7 @@ default:
require_once('admin-header.php');
if ( !current_user_can('edit_themes') )
die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
update_recently_edited($file);