Multisite Support Still Broken
-
FYI – the multisite feature is still broken with the 2.x dev branch on github.
The fix for this requires changes in two places:
admin/admin.php – line 25 – change permissions to something *regular* admins can do, not just what super-admins can do. This is leaving admins of individual sites on MU out.
$page = add_submenu_page( 'options-general.php', __('Maintenance Mode', LJMM_PLUGIN_NAME ), __('Maintenance Mode', LJMM_PLUGIN_NAME ), 'activate_plugins', 'wp-maintenance-mode', array($this, 'settings_page') );The change is the inclusion of ‘activate_plugins’, a role designated for individual MU site admins.
admin/admin.php – line 27 – change the admin_print_styles_ to admin_menu, as the first is deprecated.
add_action( 'admin_print_styles-' . $page, array($this, 'enqueue_styles') );https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/admin_print_styles
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Multisite Support Still Broken’ is closed to new replies.