[wp-trac] [WordPress Trac] #15629: Only support registered post formats in XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 2 05:27:21 UTC 2010
#15629: Only support registered post formats in XML-RPC
--------------------------+-------------------------------------------------
Reporter: ericmann | Owner: ericmann
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: XML-RPC | Version: 3.1
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
Changes (by ericmann):
* keywords: needs-patch => has-patch needs-testing
Comment:
My first thought was to check if the current theme supports the post
format being passed in to `set_post_format()`. This way, if a remote
system tries to create a post with an unregistered post format, it won't
add clutter to the database. To achieve this, I had to tweak
`current_theme_supports()` to add a check for `post-formats`.
This should fix both the XML-RPC issue and any potential issues raised by
other systems (i.e. plug-ins) trying to add unsupported post formats.
The patch is as yet untested ... but I wanted to make good on my promise
to get a patch posted tonight :-)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15629#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list