WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#3405 closed enhancement (fixed)

Support Post Enclosures Via XML-RPC MetaWeblog API Function

Reported by: swinton Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.0.5
Component: XML-RPC Keywords: has-patch
Focuses: Cc:

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 (2)

xmlrpc.php.diff (740 bytes) - added by swinton 15 years ago.
Patchfile for xmlrpc.php (updated to support PHP 4)
xmlrpc.php.2.diff (1.2 KB) - added by josephscott 14 years ago.

Download all attachments as: .zip

Change History (10)

#1 @shorty114
15 years ago

  • Keywords bg|has-patch bg|dev-feedback added; enclosure meta mw_newPost MetaWeblog API XMLRPC removed

#2 @swinton
15 years ago

  • 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!

#3 @matt
15 years ago

  • Milestone changed from 2.1 to 2.2

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

@swinton
15 years ago

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

#4 @foolswisdom
15 years ago

  • Keywords has-patch added; bg|has-patch bg|dev-feedback removed
  • Milestone changed from 2.2 to 2.3

#5 @nbachiyski
14 years ago

  • Milestone changed from 2.3 to 2.4 (next)

#6 @ffemtcj
14 years ago

  • Milestone changed from 2.5 to 2.6

#7 @josephscott
14 years ago

  • Cc josephscott added

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

#8 @ryan
14 years ago

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

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

Note: See TracTickets for help on using tickets.