Opened 9 years ago
Closed 9 years ago
#39060 closed enhancement (fixed)
Replace `is_super_admin()` check in `wp-admin/menu.php` with `update_core` capability check
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Role/Capability | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
This is part of the #37616 task. update_core is a suitable capability to use in wp-admin/menu.php.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
39060.diff looks good, @flixos90. I think it's okay to add the
{}to theifclause during commit since we're updating that area anyway.It does seem like we could revisit this area and clean up the logic at the top of the file a bit more, but that shouldn't be part of this change.