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

    r1106 r1108  
    1111}
    1212
    13 if (!isset($use_cache))    $use_cache=1;
    1413if (!isset($blogID))    $blog_ID=1;
    1514if (!isset($debug))        $debug=0;
     
    3837    $wpvar = $wpvarstoreset[$i];
    3938    if (!isset($$wpvar)) {
    40         if (empty($HTTP_POST_VARS["$wpvar"])) {
    41             if (empty($HTTP_GET_VARS["$wpvar"])) {
     39        if (empty($_POST["$wpvar"])) {
     40            if (empty($_GET["$wpvar"])) {
    4241                $$wpvar = '';
    4342            } else {
    44                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     43                $$wpvar = $_GET["$wpvar"];
    4544            }
    4645        } else {
    47             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     46            $$wpvar = $_POST["$wpvar"];
    4847        }
    4948    }
Note: See TracChangeset for help on using the changeset viewer.