Make WordPress Core

Opened 6 years ago

Last modified 8 days ago

#44524 new defect (bug)

Allow Users to View Custom Post Type Admin Page

Reported by: wpsmith's profile wpsmith Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch dev-feedback needs-testing
Focuses: administration Cc:

Description

Creating a custom post type and giving it custom capabilities, a user who can edit_posts but cannot create_posts cannot access the admin page: /wp-admin/edit.php?post_type=cpt.

Attachments (2)

44524.diff (2.4 KB) - added by wpsmith 6 years ago.
cpt.php (5.8 KB) - added by wpsmith 6 years ago.
Example CPT plugin to demonstrate error

Download all attachments as: .zip

Change History (8)

@wpsmith
6 years ago

@wpsmith
6 years ago

Example CPT plugin to demonstrate error

#1 @wpsmith
6 years ago

  • Keywords has-patch dev-feedback needs-testing added

#2 @johnbillion
6 years ago

  • Version trunk deleted

#3 @johnbillion
5 years ago

  • Milestone changed from Awaiting Review to 5.4

#4 @davidbaumwald
4 years ago

  • Milestone changed from 5.4 to Future Release

With 5.4 Beta 3 approaching, and the Beta period reserved for bugs introduced during the cycle, this is being moved to Future Release. If any maintainer or committer feels this should be included or wishes to assume ownership during a specific cycle, feel free to update the milestone accordingly.

#5 follow-up: @dhilditch
8 days ago

This seems like it should be a single line fix to fix this bug. Someone wanna suggest a pull request?

#6 in reply to: ↑ 5 @bbyrne
8 days ago

Replying to dhilditch:

This seems like it should be a single line fix to fix this bug. Someone wanna suggest a pull request?

Sounds like you have a different solution in mind from 44524.diff ?

Note: See TracTickets for help on using tickets.