Make WordPress Core


Ignore:
Timestamp:
04/20/2004 10:56:47 PM (21 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-general.php

    r1074 r1108  
    1414
    1515if (!get_magic_quotes_gpc()) {
    16     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
    17     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS);
    18     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
     16    $_GET    = add_magic_quotes($_GET);
     17    $_POST   = add_magic_quotes($_POST);
     18    $_COOKIE = add_magic_quotes($_COOKIE);
    1919}
    2020
     
    2323    $wpvar = $wpvarstoreset[$i];
    2424    if (!isset($$wpvar)) {
    25         if (empty($HTTP_POST_VARS["$wpvar"])) {
    26             if (empty($HTTP_GET_VARS["$wpvar"])) {
     25        if (empty($_POST["$wpvar"])) {
     26            if (empty($_GET["$wpvar"])) {
    2727                $$wpvar = '';
    2828            } else {
    29                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     29                $$wpvar = $_GET["$wpvar"];
    3030            }
    3131        } else {
    32             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     32            $$wpvar = $_POST["$wpvar"];
    3333        }
    3434    }
Note: See TracChangeset for help on using the changeset viewer.