WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#18511 closed defect (bug) (fixed)

Quick Edit: use taxonomy cap for assigning terms

Reported by: lancewillett Owned by:
Milestone: 3.3 Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: has-patch
Focuses: Cc:

Description

When assigning tags via the Quick Edit form in the posts list, currently no check is made for whether or not the current user has permission to assign terms.

The normal post edit form disables the terms textarea if the cap check fails: see http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/template.php#L103.

Related (but not in patch): there doesn't seem to be a way to disable assigning categories -- or any hierarchical taxonomy -- from the Quick Edit form.

Attachments (1)

18551.diff (783 bytes) - added by lancewillett 4 years ago.

Download all attachments as: .zip

Change History (3)

@lancewillett4 years ago

comment:1 @SergeyBiryukov4 years ago

  • Milestone changed from Awaiting Review to 3.3

comment:2 @markjaquith4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In [19010]:

Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18511
Note: See TracTickets for help on using tickets.