Support » Plugin: WPMS Site Maintenance Mode » [Plugin: WPMS Site Maintenance Mode] Allow Site Admins Access

  • ChrisCree

    (@chriscree)


    Heya Joshua!

    You’ve got a solid plugin here & I really appreciate what you’ve done with it. I’ve been making a minor change to it when I upgrade since 1.0 to let my site admins see their sites while they are in maintenance mode. All I’m doing is changing line 122 from

    if (is_super_admin()) return;

    to

    if (is_super_admin()) || current_user_can('manage_options')) return;

    Not sure if that is something you’d want in the plugin or not, but I thought I’d pass it along if it’ll help.

    http://wordpress.org/extend/plugins/wpms-site-maintenance-mode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • ChrisCree

    (@chriscree)

    It would totally help if I matched up my parenthesis. My bad. Correct code is:
    if ( (is_super_admin()) || current_user_can('manage_options') ) return;

    Plugin Author Joshua Parker

    (@parkerj)

    @chriscree, thanks for the contribution, but I have a question as to where this function fits in the scheme of things, since this is somewhat built in already. If a super admin is doing maintenance and doesn’t want any other user to access the network, then he/she will shut the whole site down. If the super admin is only doing maintenance on the main site, then he/she will allow access and login access to subsites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WPMS Site Maintenance Mode] Allow Site Admins Access’ is closed to new replies.