Changeset 3946 for trunk/wp-admin/inline-uploading.php
- Timestamp:
- 07/03/2006 07:03:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/inline-uploading.php
r3928 r3946 8 8 die(__('You do not have permission to upload files.')); 9 9 10 $wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment'); 11 12 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 13 $wpvar = $wpvarstoreset[$i]; 14 if (!isset($$wpvar)) { 15 if (empty($_POST["$wpvar"])) { 16 if (empty($_GET["$wpvar"])) { 17 $$wpvar = ''; 18 } else { 19 $$wpvar = $_GET["$wpvar"]; 20 } 21 } else { 22 $$wpvar = $_POST["$wpvar"]; 23 } 24 } 25 } 10 wp_reset_vars(array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment')); 26 11 27 12 $post = (int) $post;
Note: See TracChangeset
for help on using the changeset viewer.