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

    r1100 r1108  
    3030
    3131if (!get_magic_quotes_gpc()) {
    32     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
    33     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS);
    34     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
     32    $_GET    = add_magic_quotes($_GET);
     33    $_POST   = add_magic_quotes($_POST);
     34    $_COOKIE = add_magic_quotes($_COOKIE);
    3535}
    3636
     
    3939    $wpvar = $wpvarstoreset[$i];
    4040    if (!isset($$wpvar)) {
    41         if (empty($HTTP_POST_VARS["$wpvar"])) {
    42             if (empty($HTTP_GET_VARS["$wpvar"])) {
     41        if (empty($_POST["$wpvar"])) {
     42            if (empty($_GET["$wpvar"])) {
    4343                $$wpvar = '';
    4444            } else {
    45                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     45                $$wpvar = $_GET["$wpvar"];
    4646            }
    4747        } else {
    48             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     48            $$wpvar = $_POST["$wpvar"];
    4949        }
    5050    }
     
    6262    }
    6363
    64     $newcontent = stripslashes($HTTP_POST_VARS['newcontent']);
    65     $file = $HTTP_POST_VARS['file'];
     64    $newcontent = stripslashes($_POST['newcontent']);
     65    $file = $_POST['file'];
    6666    $file = validate_file($file);
    6767    $real_file = '../' . $file;
Note: See TracChangeset for help on using the changeset viewer.