[wp-trac] [WordPress Trac] #6392: Add support to XMLRPC to handle
enclosure from editPost/newPost - Patch for Wordpress 2.5 included
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 26 16:39:12 GMT 2008
#6392: Add support to XMLRPC to handle enclosure from editPost/newPost - Patch for
Wordpress 2.5 included
----------------------+-----------------------------------------------------
Reporter: amandato | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: XML-RPC | Version: 2.5
Severity: normal | Keywords: enclosure, xmlrpc, editPost, newPost, meta, meta_value
----------------------+-----------------------------------------------------
Attached code adds enclosure support to the XMLRPC functions. Enclosures
are stored in wordpress in the postmeta table. Enclosure is a special
struct within the content struct passed to the editPost/newPost functions.
Adding this functionality will allow podcasters to post their media from
another blogging application or service.
The code attached uses the styling of the attach_uploads() function and
relies on the set_custom_fields() function. Through tests I've performed,
the enclosure information is inserted correctly and displayed within the
RSS 2.0 feed.
Please refer to Dave Winer's documentation for a reference how the
enclosure struct is immpemented within the content struct of the
addPost/editPost MetaWeblogAPI functions.
http://www.xmlrpc.com/metaWeblogApi
Attached patch was applied to the development version of Wordpress 2.5,
last checked out revision 7524 from the Subversion repository.
--
Ticket URL: <http://trac.wordpress.org/ticket/6392>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list