[wp-trac] [WordPress Trac] #15673: WP_Terms_List_Table check_permissions() dead code
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 3 23:14:43 UTC 2010
#15673: WP_Terms_List_Table check_permissions() dead code
--------------------------+-------------------------------------------------
Reporter: duck_ | Owner: scribu
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/class-wp-
terms-list-table.php#L35
`$cap` is set but never used. The only occurrence of passing an argument
to `check_permissions` is in admin-ajax.php which sends `'edit'`. Patch
sets default cap to be manage_terms, but can be changed to edit_terms by
passing 'edit', this means caps check is consistent with pre-list-tables.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15673>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list