[wp-trac] [WordPress Trac] #18429: Create custom post types via XMLRPC
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 28 23:29:52 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 dd32):
> I don't see what's gained by calling these wrapper functions instead of
calling the post meta functions directly.
If there's an API for something, use it, don't reinvent the wheel.
get_post() calls are inexpensive (and they're cached) in the global scheme
of things, Validation happens for a reason, and finally, If core changes
anything, its best to only do it in one location. If there's anything in
core that doesn't use the wrappers, feel free to open a ticket to update
it.. In many cases the wrappers simply didn't exist at the time.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18429#comment:66>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list