Ecto and WordPress trackback fix

by bruno

I recently started using Ecto with my WordPress setup running this blog. ;-) I really love Ecto, you should try it. You’ll probably end up buying it, I know I did. 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 . “ ”;
}
}

Sorry for the non-idented code layout. Seems to be working just fine for me now. :-) If it isn’t with you let me know.

No related posts.