#22569 closed defect (bug) (fixed)
Show a better message on link-manager.php when links are disabled
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
We enforce the disabling of links via map_meta_cap(), since it's easy and clean. But it does mean that cap checks fail, which usually produces "You do not have sufficient permissions".
I meant to add a second message, but never did. Let's do that.
Attachments (4)
Change History (12)
In multisite, a regular admin has manage_links but not install_plugins yet they still get a "please install" message that they cannot act upon themselves. Show the install message only if the user has both caps, otherwise the permissions error?
I think the call to user_can_access_admin_page() in wp-admin/includes/menu.php slams the door before these checks run.
Good points. 22569.3.diff.
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
In 22855:
Note: See
TracTickets for help on using
tickets.

If we went all out, here's how I'd do it.