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/admin.php

    r3862 r3946  
    2525$time_format = get_settings('time_format');
    2626
    27 $wpvarstoreset = array('profile','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
    28 for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    29     $wpvar = $wpvarstoreset[$i];
    30     if (!isset($$wpvar)) {
    31         if (empty($_POST["$wpvar"])) {
    32             if (empty($_GET["$wpvar"])) {
    33                 $$wpvar = '';
    34             } else {
    35                 $$wpvar = $_GET["$wpvar"];
    36             }
    37         } else {
    38             $$wpvar = $_POST["$wpvar"];
    39         }
    40     }
    41 }
     27wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
    4228
    4329wp_enqueue_script( 'fat' );
Note: See TracChangeset for help on using the changeset viewer.