Make WordPress Core


Ignore:
Timestamp:
04/20/2004 10:56:47 PM (20 years ago)
Author:
saxmatt
Message:

Changed to superglobals, and eliminated $use_cache (since we always do).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-misc.php

    r1100 r1108  
    1515
    1616if (!get_magic_quotes_gpc()) {
    17     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
    18     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS);
    19     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
     17    $_GET    = add_magic_quotes($_GET);
     18    $_POST   = add_magic_quotes($_POST);
     19    $_COOKIE = add_magic_quotes($_COOKIE);
    2020}
    2121
     
    2424    $wpvar = $wpvarstoreset[$i];
    2525    if (!isset($$wpvar)) {
    26         if (empty($HTTP_POST_VARS["$wpvar"])) {
    27             if (empty($HTTP_GET_VARS["$wpvar"])) {
     26        if (empty($_POST["$wpvar"])) {
     27            if (empty($_GET["$wpvar"])) {
    2828                $$wpvar = '';
    2929            } else {
    30                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     30                $$wpvar = $_GET["$wpvar"];
    3131            }
    3232        } else {
    33             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     33            $$wpvar = $_POST["$wpvar"];
    3434        }
    3535    }
Note: See TracChangeset for help on using the changeset viewer.