[wp-trac] [WordPress Trac] #40500: Adding custom capabilities to a custom post type seems to break permalink link on post edit screen

WordPress Trac noreply at wordpress.org
Thu Apr 20 16:28:47 UTC 2017


#40500: Adding custom capabilities to a custom post type seems to break permalink
link on post edit screen
-------------------------------+-----------------------------
 Reporter:  finitejest         |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.7.3
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Added custom capabilities to a wordpress custom post type to be used in
 conjunction with a role scoper plugin ....

 see:
 https://www.dropbox.com/s/7gzvma9t3lm028j/Screenshot%202017-04-20%2010.27.15.png?dl=0)

 ... 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40500>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list