WordPress.org

Ready to get started?Download WordPress

Forums

bug in wordpress (9 posts)

  1. nigelkane
    Member
    Posted 8 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;
    }

  2. Monika
    Member
    Posted 8 years ago #

    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

  3. tboley
    Member
    Posted 8 years ago #

    Does the bug still exists in WordPress 2.0.3?

  4. nigelkane
    Member
    Posted 8 years ago #

    Where do you get 2.0.3? The latest official release is 2.0.2 isn't it?

    Monika - glad its helping :)

  5. nigelkane
    Member
    Posted 8 years ago #

    Ah, just cleared my cache and reloaded the download page...

    sorry :) I'll have a check.

  6. Michael Adams (mdawaffe)
    Member
    Posted 8 years ago #

    Write up a ticket on trac: http://trac.wordpress.org/

  7. nigelkane
    Member
    Posted 8 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 :)

  8. yosemite
    Member
    Posted 8 years ago #

    Now I'm curious ;') How did you come across this bug?

  9. nigelkane
    Member
    Posted 8 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.

Topic Closed

This topic has been closed to new replies.

About this Topic