Make WordPress Core

Opened 7 years ago

Last modified 5 years ago

#40500 new defect (bug)

Adding custom capabilities to a custom post type seems to break permalink link on post edit screen

Reported by: finitejest's profile finitejest Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: Posts, Post Types Keywords:
Focuses: Cc:


Added custom capabilities to a wordpress custom post type to be used in conjunction with a role scoper plugin ....


... seems to make the permalink link that shows up on the post edit screen, beneath the title, non-functional (ie, no URL is actually outputted). Also does not have the "view [custom post type]" link that typically appears in the black wordpress admin toolbar.

Otherwise, everything works as designed.

Confirmed on two separate hosts with plugins disabled and default theme.

Confirmed that removing custom capabilities fixes the issue.

Confirmed that adding capability using alternative method of simply
'capability_type' => array('print', 'prints'), also has the same result.

Change History (1)

This ticket was mentioned in Slack in #core by joyously. View the logs.

5 years ago

Note: See TracTickets for help on using tickets.