summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/plugin-editor.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-admin/plugin-editor.php')
-rw-r--r--wp-inst/wp-admin/plugin-editor.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-inst/wp-admin/plugin-editor.php b/wp-inst/wp-admin/plugin-editor.php
index 4a46027..2cfe7b8 100644
--- a/wp-inst/wp-admin/plugin-editor.php
+++ b/wp-inst/wp-admin/plugin-editor.php
@@ -53,16 +53,16 @@ case 'update':
break;
default:
-
+
require_once('admin-header.php');
if ( !current_user_can('edit_plugins') )
die('<p>'.__('You have do not have sufficient permissions to edit plugins for this blog.').'</p>');
update_recently_edited("wp-content/plugins/$file");
-
+
if (!is_file($real_file))
$error = 1;
-
+
if (!$error) {
$f = fopen($real_file, 'r');
$content = fread($f, filesize($real_file));