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-blog-header.php

    r1047 r1108  
    11<?php
    2 
    3 $use_cache = 1; // No reason not to
    42
    53/* Including config and functions files */
     
    2321    if (! empty($rewrite)) {
    2422        // Get the name of the file requesting path info.
    25         $req_uri = $HTTP_SERVER_VARS['REQUEST_URI'];
     23        $req_uri = $_SERVER['REQUEST_URI'];
    2624        $req_uri = str_replace($pathinfo, '', $req_uri);
    2725        $req_uri = preg_replace("!/+$!", '', $req_uri);
     
    5856        $wpvar = $wpvarstoreset[$i];
    5957        if (!isset($$wpvar)) {
    60             if (empty($HTTP_POST_VARS[$wpvar])) {
    61                 if (empty($HTTP_GET_VARS[$wpvar]) && empty($path_info[$wpvar])) {
     58            if (empty($_POST[$wpvar])) {
     59                if (empty($_GET[$wpvar]) && empty($path_info[$wpvar])) {
    6260                    $$wpvar = '';
    63                 } elseif (!empty($HTTP_GET_VARS[$wpvar])) {
    64                     $$wpvar = $HTTP_GET_VARS[$wpvar];
     61                } elseif (!empty($_GET[$wpvar])) {
     62                    $$wpvar = $_GET[$wpvar];
    6563                } else {
    6664                    $$wpvar = $path_info[$wpvar];
    6765                }
    6866            } else {
    69                 $$wpvar = $HTTP_POST_VARS[$wpvar];
     67                $$wpvar = $_POST[$wpvar];
    7068            }
    7169        }
Note: See TracChangeset for help on using the changeset viewer.