Ticket #1853 (closed defect (bug): worksforme)
Trackback doesn't work through api
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | XML-RPC | Version: | 1.5.2 |
| Severity: | normal | Keywords: | bg|needs-testing |
| Cc: |
Change History
- Keywords bg|needs-testing added
Above comment refers to 1.5.2
Looks fixed in trunk as mw_editPost and mw_newPost now call wp_insert_post and wp_update_post respectively
Needs testing against trunk
comment:3
tbrettinger — 6 years ago
I'm really no expert of either the WP code nor of PHP - but it looks as if blogger and MetaWeblog APIs call wp_insert_post / wp_update_post already in 1.5.2, but the MoveableType API doesn't.
Maybe that's where the problem is?
Note: See
TracTickets for help on using
tickets.

Looking at xmlrpc.php trackbacks won't be sent as the call to trackback_url_list is commented out.
Also there is a check on an undefined variable $post_pingback to decide if pingbacks should be sent.
// FIXME: do we pingback always? pingback($content, $post_ID); // trackback_url_list($content_struct['mt_tb_ping_urls'], $post_ID); if ('publish' == $post_status) { if ($post_pingback) pingback($content, $post_ID); do_enclose( $content, $post_ID ); do_trackbacks($post_ID); do_action('publish_post', $post_ID); } do_action('edit_post', $post_ID); return true;This issue is true for both mw_editPost and mw_newPost