Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3721 closed defect (bug) (fixed)

Trackback submission using xmlrpc.php on wordpress 2.1 (using ecto)

Reported by: bafonso Owned by:
Milestone: 2.0.10 Priority: normal
Severity: normal Version: 2.1
Component: XML-RPC Keywords: trackback ecto xml-rpc xmlrpc
Focuses: Cc:


Using ecto to submit a new post with trackbacks on wordpress 2.1, one finds that they get inserted as "Array". Anyway, currently wordpress’ xmlrpc.php file is not working correctly if you want to publish trackbacks from Ecto, and probably from other weblog clients. Here’s the fix! There are two lines in xmlrpc.php at the root of your wordpress blog that have:

$to_ping = $content_struct['mt_tb_ping_urls'] 

Replace both of them with:

$to_ping_input = $content_struct['mt_tb_ping_urls'];
$to_ping = “” ;
if (is_array($to_ping_input)) {
foreach ($to_ping_input as $ping_url) {
$to_ping = $to_ping . $ping_url . “ ”;

Attachments (1)

xmlrpc.diff (940 bytes) - added by bafonso 8 years ago.
xmlrpc diff

Download all attachments as: .zip

Change History (10)

comment:1 @markjaquith8 years ago


$to_ping = $content_struct['mt_tb_ping_urls'];
if ( is_array($to_ping) )
	$to_ping = implode(' ', $to_ping);

comment:2 @bafonso8 years ago

Even better!

Please, someone implement this before 2.1.1. Also, the xmlrpc bug in categories being sent as integers instead of strings.

comment:3 @ryan8 years ago

That's already fixed.

comment:4 @Nazgul8 years ago

  • Milestone changed from 2.1.1 to 2.1.2

Markjaquith's code snippet needs to be coverted to a patch.

@bafonso8 years ago

xmlrpc diff

comment:5 @bafonso8 years ago

Is this diff ok?

comment:6 @ryan8 years ago

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

(In [4905]) Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

comment:7 @ryan8 years ago

(In [4906]) Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

comment:8 @ryan8 years ago

(In [4907]) Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

comment:9 @ryan8 years ago

  • Milestone changed from 2.1.2 to 2.0.10
Note: See TracTickets for help on using tickets.