Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#19290 closed defect (bug) (invalid)

Not possible to set post thumbnails without edit_post capability

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Post Thumbnails Keywords:
Focuses: Cc:


Steps to reproduce:

  • Register a custom post type which supports a thumbnail and uses custom capability mapping.
  • Give a user (or role) the ability to upload files (upload_files) and the ability to edit posts of the post type (eg. edit_foos) but not the ability to edit posts (edit_posts).

This user will be able to upload files and will see a link to 'Use as featured image' but when this link is clicked the featured image won't be set and will fail with a response of '-1' which shows up in the 'Featured Image' meta box.

Attachments (1)

19290.patch (589 bytes) - added by johnbillion 4 years ago.

Download all attachments as: .zip

Change History (5)

@johnbillion4 years ago

comment:1 @johnbillion4 years ago

  • Keywords has-patch added

Patch. Be nice to get this in 3.3.

comment:2 @johnbillion4 years ago

  • Keywords has-patch removed

Actually, that patch doesn't make sense. edit_post should be mapping to my custom post type capability. Need to look into it further.

comment:3 @johnbillion4 years ago

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

Don't mind me.

comment:4 @nacin4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.