[wp-trac] [WordPress Trac] #42136: manage_links should be a custom capability not a default

WordPress Trac noreply at wordpress.org
Sat Oct 7 19:36:25 UTC 2017


#42136: manage_links should be a custom capability not a default
-----------------------------+-----------------------------
 Reporter:  Beee             |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  4.8.2
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I just noticed the capability manage_links still gets added to the default
 administrator capabilities upon a clean install.

 If you check that with current_user_can it returns as false, even when a
 user has this capability, like an administrator. This is when the plugin
 link manager is not installed.

 If you have the plugin link manager installed, it returns as true (as
 expected).

 So I think it should be removed out of the core and inserted into the
 https://wordpress.org/plugins/link-manager/.

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


More information about the wp-trac mailing list