Skip to content
Browse files

Trackback fix ups.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 76d4882 commit 75d974639bdb7a7ed689aee5b1a70871df7b59eb rboren committed Sep 18, 2004
Showing with 8 additions and 10 deletions.
  1. +1 −1 wp-feed.php
  2. +1 −2 wp-includes/functions.php
  3. +6 −7 wp-trackback.php
View
2 wp-feed.php
@@ -13,7 +13,7 @@
$feed = 'rss2';
}
-if ( (($p != '') && ($p != 'all')) || ($name != '') || ($withcomments == 1) ) {
+if ( is_single() || ($withcomments == 1) ) {
require('wp-commentsrss2.php');
} else {
switch ($feed) {
View
3 wp-includes/functions.php
@@ -1222,8 +1222,7 @@ function generate_rewrite_rules($permalink_structure = '', $matches = '') {
$post_rewrite = array($feedmatch => $feedquery, $pagematch => $pagequery, $match => $query) + $post_rewrite;
if ($post) {
- $post_rewrite = array($trackbackmatch =top
-> $trackbackquery) + $post_rewrite;
+ $post_rewrite = array($trackbackmatch => $trackbackquery) + $post_rewrite;
}
}
View
13 wp-trackback.php
@@ -1,6 +1,10 @@
<?php
-$doing_trackback = 1;
-require('./wp-config.php');
+
+if ( !$doing_trackback) {
+ $doing_trackback = 1;
+ require('wp-blog-header.php');
+}
+
include_once (ABSPATH . WPINC . '/functions-post.php');
function trackback_response($error = 0, $error_message = '') {
@@ -31,11 +35,6 @@ function trackback_response($error = 0, $error_message = '') {
$excerpt = $_POST['excerpt'];
$blog_name = $_POST['blog_name'];
-if ( !$doing_trackback) {
- $doing_trackback = 1;
- require('./wp-blog-header.php');
-}
-
if ( is_single() )
$tb_id = $posts[0]->ID;

0 comments on commit 75d9746

Please sign in to comment.
Something went wrong with that request. Please try again.