WordPress.org

Ready to get started?Download WordPress

Forums

WPMS Site Maintenance Mode
Allow Site Admins Access (3 posts)

  1. ChrisCree
    Member
    Posted 1 year ago #

    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/

  2. ChrisCree
    Member
    Posted 1 year ago #

    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;

  3. Joshua Parker
    Member
    Plugin Author

    Posted 1 year ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.