Changeset 3956

Show
Ignore:
Timestamp:
07/04/06 19:31:28 (2 years ago)
Author:
ryan
Message:

wp_reset_vars(). Props Sewar. fixes #2888

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/comment.php

    r3928 r3956  
    44$parent_file = 'edit.php'; 
    55$submenu_file = 'edit-comments.php'; 
    6 $wpvarstoreset = array('action'); 
    76 
    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 
     7wp_reset_vars(array('action')); 
    228 
    239if ( isset( $_POST['deletecomment'] ) )