From ca42a4bbdb16c60f4a508c42cfbd43b4035e31f1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 22 Feb 2007 01:34:06 +0000 Subject: [PATCH] Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721 git-svn-id: https://develop.svn.wordpress.org/trunk@4905 602fd350-edb4-49c9-b593-d223f7449a82 --- xmlrpc.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index f173bda589..224ae8cea9 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -989,7 +989,9 @@ class wp_xmlrpc_server extends IXR_Server { $post_content = $post_content . "\n\n" . $post_more; } - $to_ping = $content_struct['mt_tb_ping_urls']; + $to_ping = $content_struct['mt_tb_ping_urls']; + if ( is_array($to_ping) ) + $to_ping = implode(' ', $to_ping); // Do some timestamp voodoo $dateCreatedd = $content_struct['dateCreated']; @@ -1151,8 +1153,10 @@ class wp_xmlrpc_server extends IXR_Server { $post_content = $post_content . "\n\n" . $post_more; } - $to_ping = $content_struct['mt_tb_ping_urls']; - + $to_ping = $content_struct['mt_tb_ping_urls']; + if ( is_array($to_ping) ) + $to_ping = implode(' ', $to_ping); + $comment_status = (empty($content_struct['mt_allow_comments'])) ? get_option('default_comment_status') : $content_struct['mt_allow_comments'];