WordPress.org

Plugin Directory


Ignore:
Timestamp:
09/28/17 19:26:55 (5 months ago)
Author:
greenshady
Message:

Version 2.0.1 of the Members plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • members/trunk/inc/functions-private-site.php

    r1699146 r1737967  
    7979function members_please_log_in() { 
    8080 
     81    // If private blog is not enabled, bail. 
     82    if ( ! members_is_private_blog() ) 
     83        return; 
     84 
    8185    // If this is a multisite instance and the user is logged into the network. 
    82     if ( members_is_private_blog() && is_multisite() && is_user_logged_in() && ! is_user_member_of_blog() ) { 
     86    if ( is_multisite() && is_user_logged_in() && ! is_user_member_of_blog() && ! is_super_admin() ) { 
    8387        members_ms_private_blog_die(); 
    8488    } 
    8589 
    8690    // Check if the private blog feature is active and if the user is not logged in. 
    87     if ( members_is_private_blog() && ! is_user_logged_in() && members_is_private_page() ) { 
     91    if ( ! is_user_logged_in() && members_is_private_page() ) { 
    8892 
    8993        auth_redirect(); 
Note: See TracChangeset for help on using the changeset viewer.