WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 8 months ago

#44524 new defect (bug)

Allow Users to View Custom Post Type Admin Page

Reported by: 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 2 years ago.
cpt.php (5.8 KB) - added by wpsmith 2 years ago.
Example CPT plugin to demonstrate error

Download all attachments as: .zip

Change History (6)

@wpsmith
2 years ago

@wpsmith
2 years ago

Example CPT plugin to demonstrate error

#1 @wpsmith
2 years ago

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

#2 @johnbillion
2 years ago

  • Version trunk deleted

#3 @johnbillion
12 months ago

  • Milestone changed from Awaiting Review to 5.4

#4 @davidbaumwald
8 months 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.

Note: See TracTickets for help on using tickets.