Changeset 637
- Timestamp:
- 12/22/2003 03:10:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r636 r637 1 1 <?php 2 2 require(dirname(__FILE__) . '/wp-config.php'); 3 if (!empty($HTTP_GET_VARS['tb_id'])) { 4 // trackback is done by a GET 5 $tb_id = intval($HTTP_GET_VARS['tb_id']); 6 $tb_url = $HTTP_GET_VARS['url']; 7 $title = $HTTP_GET_VARS['title']; 8 $excerpt = $HTTP_GET_VARS['excerpt']; 9 $blog_name = $HTTP_GET_VARS['blog_name']; 10 } elseif (!empty($HTTP_POST_VARS['url'])) { 11 // trackback is done by a POST 12 $request_array = 'HTTP_POST_VARS'; 13 $tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']); 14 $tb_id = intval($tb_id[count($tb_id)-1]); 15 $tb_url = $HTTP_POST_VARS['url']; 16 $title = $HTTP_POST_VARS['title']; 17 $excerpt = $HTTP_POST_VARS['excerpt']; 18 $blog_name = $HTTP_POST_VARS['blog_name']; 3 4 // trackback is done by a POST 5 $request_array = 'HTTP_POST_VARS'; 6 $tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']); 7 $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']; 12 13 14 if (empty($title) && empty($tb_url) && empty($blog_name)) { 15 // If it doesn't look like a trackback at all... 16 header('Location: ' . get_permalink($tb_id)); 19 17 } 20 18
Note: See TracChangeset
for help on using the changeset viewer.