[wp-trac] [WordPress Trac] #18438: Create a new term in XMLRPC
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 12 01:54:37 UTC 2012
#18438: Create a new term in XMLRPC
----------------------------+-----------------------
Reporter: nprasath002 | Owner: westi
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 3.4
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------
Comment (by markoheijnen):
Was busy with creating unit tests for the patch and I wonder the following
things:
wp_newTerm
- Check if taxonomy is set and is a string
- Why is there the following line: $taxonomy = (array) taxonomy?
- return term_id should have strval()
wp_editTerm
- should the current_user_can check $term_id as second parameter?
- error check op $parent_term but trying to show the error of $term
- Error message for parent variable is not the same as newTerm, the same
for error code
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18438#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list