Opened 5 years ago
Closed 5 years ago
#49977 closed defect (bug) (fixed)
Multisite: 'mu_menu_items' filter leaves empty table on Network Settings
Reported by: | dlh | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Networks and Sites | Keywords: | has-patch has-screenshots |
Focuses: | multisite | Cc: |
Description
As a developer maintaining a multisite network, I'd like to prevent super administrators from enabling any administration menus on individual sites, such as "Plugins." I can do this with:
add_filter( 'mu_menu_items', '__return_empty_array' );
However, the Menu Settings
heading and empty settings table still appear on the Network Settings screen. See the attached screenshot.
The attached patch would check for available menus after applying mu_menu_items
and before rendering the markup.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 47616: