Opened 8 years ago
Last modified 2 weeks ago
#44524 new defect (bug)
Allow Users to View Custom Post Type Admin Page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch dev-feedback needs-refresh |
| 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)
Change History (9)
#4
@
6 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:
↓ 6
@
19 months 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
@
19 months 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
@
2 weeks 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.
Example CPT plugin to demonstrate error