Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#19290 closed defect (bug) (invalid)

Not possible to set post thumbnails without edit_post capability

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

Description

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 13 years ago.

Download all attachments as: .zip

Change History (5)

@johnbillion
13 years ago

#1 @johnbillion
13 years ago

  • Keywords has-patch added

Patch. Be nice to get this in 3.3.

#2 @johnbillion
13 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.

#3 @johnbillion
13 years ago

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

Don't mind me.

#4 @nacin
13 years ago

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