[wp-trac] [WordPress Trac] #15405: Extend Post Format support to the XML-RPC API
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 19 05:35:23 UTC 2010
#15405: Extend Post Format support to the XML-RPC API
----------------------------+-----------------------------------------------
Reporter: ericmann | Owner: ericmann
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.1
Component: XML-RPC | Version: 3.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
Comment(by josephscott):
I chatted with MarkJ who committed the get_post_format_strings() function
with the zero index for default. He agreed that 'default' would be better
for that and committed the change - r16477
I've uploaded an updated diff that did a couple of things:
- made a few adjustments to the patch to be more in line with WP coding
style. The XML-RPC code has done a poor job of keeping with that style,
but may as well start here :-)
- tightened up the wp_getPostFormats() function just a bit
- added validation of the wp_post_format field for methods that use it for
updating the post format. If we get an invalid post format return an XML-
RPC error indicating the problem
- for methods that include wp_post_format in the response, set the value
to 'default' if the post format is empty
This patch passed my run of tests.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15405#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list