[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:38:22 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
--------------------------+-------------------------------------------------
Comment(by nacin):
Nice!
It looks like that code works the same as the post-formats branch. We
should be able to just add the extra case there.
also, we should optionally return false, in set_post_format, if the theme
doesn't support it, as the action failed.
In fact, all of these functions should noop.
Mark, maybe we should move these functions into a new file, and
require_if_theme_support()? Seems odd to use it for thumbnails if we're
not going to use them here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15629#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list