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

    r1075 r1108  
    1616
    1717if (!get_magic_quotes_gpc()) {
    18     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
    19     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS);
    20     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
     18    $_GET    = add_magic_quotes($_GET);
     19    $_POST   = add_magic_quotes($_POST);
     20    $_COOKIE = add_magic_quotes($_COOKIE);
    2121}
    2222
     
    2525    $wpvar = $wpvarstoreset[$i];
    2626    if (!isset($$wpvar)) {
    27         if (empty($HTTP_POST_VARS["$wpvar"])) {
    28             if (empty($HTTP_GET_VARS["$wpvar"])) {
     27        if (empty($_POST["$wpvar"])) {
     28            if (empty($_GET["$wpvar"])) {
    2929                $$wpvar = '';
    3030            } else {
    31                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     31                $$wpvar = $_GET["$wpvar"];
    3232            }
    3333        } else {
    34             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     34            $$wpvar = $_POST["$wpvar"];
    3535        }
    3636    }
     
    3838
    3939$comment = array();
    40 if (isset($HTTP_POST_VARS["comment"])) {
    41     foreach ($HTTP_POST_VARS["comment"] as $k => $v) {
     40if (isset($_POST["comment"])) {
     41    foreach ($_POST["comment"] as $k => $v) {
    4242        $comment[intval($k)] = $v;
    4343    }
Note: See TracChangeset for help on using the changeset viewer.