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
+2 -2
View File
@@ -23,7 +23,7 @@ case 'update':
check_admin_referer('edit-plugin_' . $file);
if ( !current_user_can('edit_plugins') )
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']);
if (is_writeable($real_file)) {
@@ -43,7 +43,7 @@ default:
require_once('admin-header.php');
if ( !current_user_can('edit_plugins') )
die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
update_recently_edited("wp-content/plugins/$file");