Make WordPress Core

Opened 20 years ago

Closed 18 years ago

#3405 closed enhancement (fixed)

Support Post Enclosures Via XML-RPC MetaWeblog API Function

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

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 20 years ago.
Patchfile for xmlrpc.php (updated to support PHP 4)
xmlrpc.php.2.diff​ (1.2 KB ) - added by josephscott 18 years ago.

Download all attachments as: .zip

Change History (10)

#1 @shorty114
20 years ago

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

#2 @swinton
20 years ago

  • Milestone 2.0.6 → 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
20 years ago

  • Milestone 2.1 → 2.2

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

@swinton
20 years ago

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

#4 @foolswisdom
20 years ago

  • Keywords has-patch added; bg|has-patch bg|dev-feedback removed
  • Milestone 2.2 → 2.3

#5 @nbachiyski
19 years ago

  • Milestone 2.3 → 2.4 (next)

#6 @ffemtcj
19 years ago

  • Milestone 2.5 → 2.6

#7 @josephscott
18 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
18 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.