[wp-trac] [WordPress Trac] #18429: Create custom post types via XMLRPC

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 23:09:21 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:63 markoheijnen]:
 > Basically the following code is enough and the more get_post calls isn't
 there anymore.

 I meant the work that happens inside `delete_post_thumbnail` and
 `set_post_thumbnail`, which each perform a `get_post` and some validation
 that is redundant for our purposes (since we've already done the requisite
 checks).

 I don't see what's gained by calling these wrapper functions instead of
 calling the post meta functions directly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18429#comment:64>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list