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-trackback.php

    r1012 r1108  
    44// trackback is done by a POST
    55$request_array = 'HTTP_POST_VARS';
    6 $tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']);
     6$tb_id = explode('/', $_SERVER['REQUEST_URI']);
    77$tb_id = intval($tb_id[count($tb_id)-1]);
    8 $tb_url = $HTTP_POST_VARS['url'];
    9 $title = $HTTP_POST_VARS['title'];
    10 $excerpt = $HTTP_POST_VARS['excerpt'];
    11 $blog_name = $HTTP_POST_VARS['blog_name'];
     8$tb_url = $_POST['url'];
     9$title = $_POST['title'];
     10$excerpt = $_POST['excerpt'];
     11$blog_name = $_POST['blog_name'];
    1212
    1313require('wp-blog-header.php');
     
    2222}
    2323
    24 if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_url))) {
     24if ((strlen(''.$tb_id)) && (empty($_GET['__mode'])) && (strlen(''.$tb_url))) {
    2525
    2626    @header('Content-Type: text/xml');
     
    5050    $comment_post_ID = $tb_id;
    5151
    52     $user_ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
     52    $user_ip = $_SERVER['REMOTE_ADDR'];
    5353    $user_domain = gethostbyaddr($user_ip);
    5454    $time_difference = get_settings('time_difference');
Note: See TracChangeset for help on using the changeset viewer.