Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1853 closed defect (bug) (worksforme)

Trackback doesn't work through api

Reported by: tbrettinger's profile tbrettinger Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.2
Component: XML-RPC Keywords: bg|needs-testing
Focuses: 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 (6)

#1 @westi
19 years ago

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

#2 @westi
19 years ago

  • 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

#3 @tbrettinger
19 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?

#4 @ryan
19 years ago

  • Milestone set to 2.0

#5 @matt
19 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

#6 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.