Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#15673 closed defect (bug) (fixed)

WP_Terms_List_Table check_permissions() dead code

Reported by: duck_'s profile duck_ Owned by: scribu's profile scribu
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: General Keywords: has-patch
Focuses: Cc:

Description

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.

Attachments (1)

15673.diff (704 bytes) - added by duck_ 14 years ago.

Download all attachments as: .zip

Change History (2)

@duck_
14 years ago

#1 @scribu
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.