Make WordPress Core


Ignore:
Timestamp:
07/03/2006 07:03:37 PM (19 years ago)
Author:
ryan
Message:

wp_reset_vars() from Sewar. fixes #2888

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/inline-uploading.php

    r3928 r3946  
    88    die(__('You do not have permission to upload files.'));
    99
    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 }
     10wp_reset_vars(array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment'));
    2611
    2712$post = (int) $post;
Note: See TracChangeset for help on using the changeset viewer.