summaryrefslogtreecommitdiffstats
path: root/wp-admin/plugin-editor.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-05 11:55:16 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-05 11:55:16 +0000
commitc1e9ee019dcce4d8c2e5bc7d6feac95afa812598 (patch)
treecf1ce2babb677da1e8ed5980a2b93f50c007db6d /wp-admin/plugin-editor.php
parent4f1ae2b3efc96635b7f4f8d40720f96117927204 (diff)
downloadwordpress-mu-c1e9ee019dcce4d8c2e5bc7d6feac95afa812598.tar.gz
wordpress-mu-c1e9ee019dcce4d8c2e5bc7d6feac95afa812598.tar.xz
wordpress-mu-c1e9ee019dcce4d8c2e5bc7d6feac95afa812598.zip
WP Merge.
Delete feed code and sql git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@636 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/plugin-editor.php')
-rw-r--r--wp-admin/plugin-editor.php20
1 files changed, 3 insertions, 17 deletions
diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php
index 4c3c600..3085261 100644
--- a/wp-admin/plugin-editor.php
+++ b/wp-admin/plugin-editor.php
@@ -5,21 +5,7 @@ require_once('admin.php');
$title = __("Edit Plugins");
$parent_file = 'plugins.php';
-$wpvarstoreset = array('action','redirect','profile','error','warning','a','file');
-for ($i=0; $i<count($wpvarstoreset); $i += 1) {
- $wpvar = $wpvarstoreset[$i];
- if (!isset($$wpvar)) {
- if (empty($_POST["$wpvar"])) {
- if (empty($_GET["$wpvar"])) {
- $$wpvar = '';
- } else {
- $$wpvar = $_GET["$wpvar"];
- }
- } else {
- $$wpvar = $_POST["$wpvar"];
- }
- }
-}
+wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file'));
$plugins = get_plugins();
$plugin_files = array_keys($plugins);
@@ -38,7 +24,7 @@ case 'update':
check_admin_referer('edit-plugin_' . $file);
if ( !current_user_can('edit_plugins') )
- die('<p>'.__('You have do not have sufficient permissions to edit templates for this blog.').'</p>');
+ die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
@@ -58,7 +44,7 @@ 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>');
+ die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
update_recently_edited("wp-content/plugins/$file");