WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 20 hours ago

#44524 new defect (bug)

Allow Users to View Custom Post Type Admin Page

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

Download all attachments as: .zip

Change History (4)

@wpsmith
2 weeks ago

@wpsmith
2 weeks ago

Example CPT plugin to demonstrate error

#1 @wpsmith
2 weeks ago

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

#2 @johnbillion
20 hours ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.