[wp-trac] [WordPress Trac] #18438: Create a new term in XMLRPC

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 23 15:34:11 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 maxcutler):

 Cap check changes [https://irclogs.wordpress.org/chanlog.php?channel
 =wordpress-dev&day=2012-02-22&sort=asc#m368792 discussed] yesterday on
 IRC:

 * Only `wp.editTerm` needs to check the `edit_terms` cap. The
 `wp.getTerm`, `wp.getTerms`, `wp.getTaxonomies`, and `wp.getTaxonomy`
 methods should check `assign_terms` instead since they are read-only.
 * nacin suggested `wp.newTerm` should also check `assign_terms` instead of
 `edit_terms`/`manage_terms`, since currently that's all that's required to
 create a new tag. He's going to follow up/confirm after doing some more
 research.

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


More information about the wp-trac mailing list