Ticket #3405 (closed enhancement: fixed)

Opened 2 years ago

Last modified 4 months ago

Support Post Enclosures Via XML-RPC MetaWeblog API Function

Reported by: swinton Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: XML-RPC Version: 2.0.5
Severity: normal Keywords: has-patch
Cc: josephscott

Description

I have attached a patchfile for xmlrpc.php (xmlrpc.php.diff) which adds enclosure support to the mw_newPost function. The change supports enclosures as specified by the metaWeblog API spec (http://www.xmlrpc.com/metaWeblogApi), i.e. enclosures can be specified as part of the content struct.

Attachments

xmlrpc.php.diff (0.7 kB) - added by swinton on 12/04/06 11:13:38.
Patchfile for xmlrpc.php (updated to support PHP 4)
xmlrpc.php.2.diff (1.2 kB) - added by josephscott on 04/26/08 15:40:12.

Change History

11/29/06 22:15:20 changed by shorty114

  • keywords changed from enclosure meta mw_newPost MetaWeblog API XMLRPC to bg|has-patch bg|dev-feedback.

12/01/06 11:30:06 changed by swinton

  • milestone changed from 2.0.6 to 2.1.

Just realized my patch users array_intersect_key which is available in PHP 5 only. Doh!

Still, even if we drop the intersect line, we still have some pretty useful functionality, IMHO!

12/03/06 21:59:55 changed by matt

  • milestone changed from 2.1 to 2.2.

If you can update the patch we can merge it in after 2.1.

12/04/06 11:13:38 changed by swinton

  • attachment xmlrpc.php.diff added.

Patchfile for xmlrpc.php (updated to support PHP 4)

03/27/07 22:50:57 changed by foolswisdom

  • keywords changed from bg|has-patch bg|dev-feedback to has-patch.
  • milestone changed from 2.2 to 2.3.

09/04/07 07:45:32 changed by nbachiyski

  • milestone changed from 2.3 to 2.4 (next).

03/19/08 03:36:25 changed by ffemtcj

  • milestone changed from 2.5 to 2.6.

04/26/08 15:40:12 changed by josephscott

  • attachment xmlrpc.php.2.diff added.

04/26/08 15:42:07 changed by josephscott

  • cc set to josephscott.

I've updated the patch for the current -trunk and expanded it to work for metaWeblog.editPost as well metaWeblog.newPost.

04/28/08 16:15:34 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [7847]) Handle enclosures in xmlrpc. Props josephscott. fixes #3405