Opened 6 years ago
Closed 6 years ago
#49977 closed defect (bug) (fixed)
Multisite: 'mu_menu_items' filter leaves empty table on Network Settings
| Reported by: | dlh | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Networks and Sites | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch has-screenshots |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 47616: