[wp-trac] [WordPress Trac] #2819: Trackback fails on pages

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 13 09:24:01 GMT 2006


#2819: Trackback fails on pages
-----------------------+----------------------------------------------------
       Id:  2819       |      Status:  new                     
Component:  General    |    Modified:  Tue Jun 13 09:24:00 2006
 Severity:  normal     |   Milestone:                          
 Priority:  normal     |     Version:  2.0.2                   
    Owner:  anonymous  |    Reporter:  nigelkane               
-----------------------+----------------------------------------------------
 When on a page, the trackback link does not work as it assumes a p= in the
 URL.

 In comment-functions.php (lines 509 - 517) of WP 2.0.2, get_trackback_url
 needs and adjustment. The following line:


 {{{
 $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;
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2819>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list