• Resolved Anonymous User

    (@anonymized-12434805)


    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

    https://ww.wp.xz.cn/plugins/lj-maintenance-mode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lukas Juhas

    (@lukasneptun)

    Hi there,

    Thank you, I’m aware of this, development branch on GitGub is not really working at the moment, I’ll probably release 1.2 first to work around cache plugins.

    Anyways, 1.1.1 works on multisite, although you have to enable it for each site manually, can’t do it globally – yet.

    Thank you for your contribution Eric, I hope I’ll find time for this soon.

    Thread Starter Anonymous User

    (@anonymized-12434805)

    We were unable to get 1.1.1 working for our single-site owners in MU. Access to the configuration page was restricted, as the lines in the OP restrict access only to Super Administrators, which single site owners do not have access to.

    Hope this helps!

    Plugin Author Lukas Juhas

    (@lukasneptun)

    Hi Eric,

    Great, thank you for your feedback. I’ll look in to this!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multisite Support Still Broken’ is closed to new replies.