[wp-trac] [WordPress Trac] #9777: Add "delete" button to term pages

WordPress Trac noreply at wordpress.org
Sun Dec 4 19:12:22 UTC 2016


#9777: Add "delete" button to term pages
----------------------------------------+---------------------------------
 Reporter:  ramiy                       |       Owner:  helen
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  4.8
Component:  Taxonomy                    |     Version:
 Severity:  minor                       |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:  ui, administration
----------------------------------------+---------------------------------
Changes (by johnbillion):

 * keywords:  has-patch good-first-bug => good-first-bug needs-patch
 * version:  2.7.1 =>
 * milestone:  Future Release => 4.8


Comment:

 Thanks for the patch, @cklosows!

 This button needs to be wrapped in a `current_user_can( 'delete_term',
 $tag_ID )` check. This will also negate the need for the default category
 check, which is now handled inside the cap check since #35614.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/9777#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list