Skip to content

Commit

Permalink
Make sure trackback template is not double processed.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@2305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
rboren committed Feb 13, 2005
1 parent 677a576 commit 438753c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wp-blog-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions wp-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

if ( empty($doing_trackback) ) {
$doing_trackback = true;
$tb = true;
require_once('wp-blog-header.php');
}

Expand Down

0 comments on commit 438753c

Please sign in to comment.