[wp-trac] [WordPress Trac] #18429: Create custom post types via XMLRPC
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 28 22:55:38 UTC 2012
#18429: Create custom post types via XMLRPC
----------------------------+------------------------
Reporter: nprasath002 | Owner: westi
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 3.4
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------
Comment (by maxcutler):
Replying to [comment:61 markoheijnen]:
> Changed the code to use set_post_thumbnail() and
delete_post_thumbnail().
I'm a -0 on this, and had considered it when working on my patch. Using
those methods introduces extra work (more get_post calls) that isn't
required and introduces a layer of indirection that isn't particularly
helpful.
Technically "_thumbnail_id" might be an internal/subject-to-change detail,
but it's used in many places in core, and I see no reason why the XML-RPC
server implementation can't use it too. If core were to ever change the
implementation, they'd have to grep the codebase and they'd find its usage
here and change it appropriately.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18429#comment:62>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list