nigelkane
Member
Posted 5 years ago #
I don't seem to be able to stick this anyplace else.
In comment-functions.php (lines 509 - 517) of WP 2.0.2, get_trackback_url does not work correctly whne trying to track back on a page.
$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
should be wrapped with something like
if(is_page()) {
$tb_url = get_settings('siteurl') . '/wp-trackback.php?page_id=' . $id;
} else {
$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
}
nigelkane
you made my day,
my blog has hundreds of error 404
I have found out:from trackbacks,
and know I now why
:-)
:-)
I wish you well
Monika
Does the bug still exists in WordPress 2.0.3?
nigelkane
Member
Posted 5 years ago #
Where do you get 2.0.3? The latest official release is 2.0.2 isn't it?
Monika - glad its helping :)
nigelkane
Member
Posted 5 years ago #
Ah, just cleared my cache and reloaded the download page...
sorry :) I'll have a check.
Write up a ticket on trac: http://trac.wordpress.org/
nigelkane
Member
Posted 5 years ago #
The fault does occur on 2.0.3 and I have raised a trac (thanks mdawaffe): http://trac.wordpress.org/ticket/2819#preview
Hopefully it'll get into 2.1, or 2.0.4 :)
Now I'm curious ;') How did you come across this bug?
nigelkane
Member
Posted 5 years ago #
Regression testing :)
I am trying to make track backs work for a page for a client of mine, and just checked the URL coming back to see what was working.
Accidentally found a page_id that had the same id as a post, and was getting redirected to the post.