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/link-add.php

    r1100 r1108  
    3333}
    3434if (!get_magic_quotes_gpc()) {
    35     $HTTP_GET_VARS    = add_magic_quotes($HTTP_GET_VARS);
    36     $HTTP_POST_VARS   = add_magic_quotes($HTTP_POST_VARS);
    37     $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
     35    $_GET    = add_magic_quotes($_GET);
     36    $_POST   = add_magic_quotes($_POST);
     37    $_COOKIE = add_magic_quotes($_COOKIE);
    3838}
    3939
     
    4545    $wpvar = $wpvarstoreset[$i];
    4646    if (!isset($$wpvar)) {
    47         if (empty($HTTP_POST_VARS["$wpvar"])) {
    48             if (empty($HTTP_GET_VARS["$wpvar"])) {
     47        if (empty($_POST["$wpvar"])) {
     48            if (empty($_GET["$wpvar"])) {
    4949                $$wpvar = '';
    5050            } else {
    51                 $$wpvar = $HTTP_GET_VARS["$wpvar"];
     51                $$wpvar = $_GET["$wpvar"];
    5252            }
    5353        } else {
    54             $$wpvar = $HTTP_POST_VARS["$wpvar"];
     54            $$wpvar = $_POST["$wpvar"];
    5555        }
    5656    }
    5757}
    58 $link_url = stripslashes($HTTP_GET_VARS['linkurl']);
    59 $link_name = htmlentities(stripslashes(urldecode($HTTP_GET_VARS['name'])));
     58$link_url = stripslashes($_GET['linkurl']);
     59$link_name = htmlentities(stripslashes(urldecode($_GET['name'])));
    6060
    6161require('admin-header.php');
Note: See TracChangeset for help on using the changeset viewer.