WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#42136 new defect (bug)

manage_links should be a custom capability not a default

Reported by: Beee Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 4.8.2
Component: Role/Capability Keywords:
Focuses: Cc:
PR Number:

Description

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

Change History (2)

#2 @Beee
2 years ago

  • Severity changed from normal to minor
Note: See TracTickets for help on using tickets.