From 438753cfdd77ce6ed9ccbb5eb13ad5a5fdcf965f Mon Sep 17 00:00:00 2001 From: rboren Date: Sun, 13 Feb 2005 21:25:08 +0000 Subject: [PATCH] Make sure trackback template is not double processed. git-svn-id: http://svn.automattic.com/wordpress/trunk@2305 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-blog-header.php | 7 ++----- wp-trackback.php | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 70ebeb8c0eed..b8050fc8bf77 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -182,16 +182,13 @@ header('HTTP/1.x 404 Not Found'); } -if ( is_trackback() ) - $doing_trackback = true; - // Template redirection if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { do_action('template_redirect'); if ( is_feed() && empty($doing_rss) ) { include(ABSPATH . '/wp-feed.php'); exit; - } else if ( is_trackback() ) { + } else if ( is_trackback() && empty($doing_trackback) ) { include(ABSPATH . '/wp-trackback.php'); exit; } else if ( is_404() && get_404_template() ) { @@ -233,7 +230,7 @@ if ( is_feed() && empty($doing_rss) ) { include(ABSPATH . '/wp-feed.php'); exit; - } else if ( is_trackback() ) { + } else if ( is_trackback() && empty($doing_trackback) ) { include(ABSPATH . '/wp-trackback.php'); exit; } diff --git a/wp-trackback.php b/wp-trackback.php index 75bcafb4c009..d78eb1f87c74 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -3,6 +3,7 @@ if ( empty($doing_trackback) ) { $doing_trackback = true; + $tb = true; require_once('wp-blog-header.php'); }