[wp-trac] [WordPress Trac] #13972: Add new category link - capability check needed

WordPress Trac noreply at wordpress.org
Thu Jul 11 07:55:28 UTC 2013


#13972: Add new category link - capability check needed
--------------------------------------------+------------------
 Reporter:  wjm                             |       Owner:
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  3.6
Component:  Administration                  |     Version:  3.0
 Severity:  minor                           |  Resolution:
 Keywords:  has-patch needs-testing commit  |
--------------------------------------------+------------------

Comment (by bpetty):

 This might be a little more confusing than I thought. For some reason
 `wp_ajax_add_link_category()` is checking for `manage_categories` as well,
 but I'm fairly certain that should also be `manage_links` just like the
 `wp_ajax_delete_link()` method uses, and also as determined from the
 default [https://github.com/tierra/wordpress/blob/master/wp-
 includes/taxonomy.php#L94-L98 link_category taxonomy].

 I haven't thought through the possible back compat issues that might arise
 from actually fixing it though, so I'm just not sure on applying this yet.

 Maybe punt for now?

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


More information about the wp-trac mailing list