#3721 closed defect (bug) (fixed)
Trackback submission using xmlrpc.php on wordpress 2.1 (using ecto)
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.0.10 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | XML-RPC | Keywords: | trackback ecto xml-rpc xmlrpc |
| Focuses: | Cc: |
Description
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)
Change History (10)
#2
@
19 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.
#4
@
19 years ago
- Milestone changed from 2.1.1 to 2.1.2
Markjaquith's code snippet needs to be coverted to a patch.
Note: See
TracTickets for help on using
tickets.
Better:
$to_ping = $content_struct['mt_tb_ping_urls']; if ( is_array($to_ping) ) $to_ping = implode(' ', $to_ping);