WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 7 weeks ago

#44524 new defect (bug)

Allow Users to View Custom Post Type Admin Page

Reported by: wpsmith Owned by:
Milestone: 5.4 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch dev-feedback needs-testing
Focuses: administration Cc:
PR Number:

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

Download all attachments as: .zip

Change History (5)

@wpsmith
17 months ago

@wpsmith
17 months ago

Example CPT plugin to demonstrate error

#1 @wpsmith
17 months ago

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

#2 @johnbillion
17 months ago

  • Version trunk deleted

#3 @johnbillion
7 weeks ago

  • Milestone changed from Awaiting Review to 5.4
Note: See TracTickets for help on using tickets.