Make WordPress Core

Opened 8 years ago

Closed 5 months ago

#44524 closed defect (bug) (duplicate)

Allow Users to View Custom Post Type Admin Page

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

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

Download all attachments as: .zip

Change History (10)

@wpsmith
8 years ago

@wpsmith
8 years ago

Example CPT plugin to demonstrate error

#1 @wpsmith
8 years ago

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

#2 @johnbillion
8 years ago

  • Version trunk

#3 @johnbillion
7 years ago

  • Milestone Awaiting Review5.4

#4 @davidbaumwald
7 years ago

  • Milestone 5.4Future 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
2 years 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
2 years 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 ?

#7 @huzaifaalmesbah
7 months ago

  • Keywords needs-refresh added; needs-testing removed

I attempted to apply the attached patch (44524.diff) against current trunk (7.0-alpha), but it does not apply cleanly.

Patch results:

  • src/wp-admin/includes/plugin.php → 3 of 4 hunks failed (.rej created)

Since the patch cannot be applied, testing is not possible at this time. Because of this, keeping needs-testing is not actionable until the patch is refreshed.

#8 @manfcarlo
5 months ago

  • Resolutionduplicate
  • Status newclosed

Duplicate of #22895.

Note: See TracTickets for help on using tickets.