Ticket #1853 (closed defect (bug): worksforme)

Opened 6 years ago

Last modified 5 years ago

Trackback doesn't work through api

Reported by: tbrettinger Owned by: anonymous
Priority: normal Milestone:
Component: XML-RPC Version: 1.5.2
Severity: normal Keywords: bg|needs-testing
Cc:

Description

It seems to be impossible to make outgoing trackbacks work through the api in 1.5.2

Submitting a post with trackbacks through the web interface works, using a client it doesn't.

The Problem is also described  here and  here

Change History

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

  • 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

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?

comment:4   ryan6 years ago

  • Milestone set to 2.0

comment:5   matt6 years ago

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.