Changeset 3946 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 07/03/2006 07:03:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugin-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r3928 r3946 5 5 $parent_file = 'plugins.php'; 6 6 7 $wpvarstoreset = array('action','redirect','profile','error','warning','a','file'); 8 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 9 $wpvar = $wpvarstoreset[$i]; 10 if (!isset($$wpvar)) { 11 if (empty($_POST["$wpvar"])) { 12 if (empty($_GET["$wpvar"])) { 13 $$wpvar = ''; 14 } else { 15 $$wpvar = $_GET["$wpvar"]; 16 } 17 } else { 18 $$wpvar = $_POST["$wpvar"]; 19 } 20 } 21 } 7 wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file')); 22 8 23 9 $plugins = get_plugins();
Note: See TracChangeset
for help on using the changeset viewer.