Plugin Directory

Changeset 727547


Ignore:
Timestamp:
06/17/2013 04:38:29 PM (13 years ago)
Author:
jkmassel
Message:

Fixing a bug where users couldn't log in

Location:
underconstruction
Files:
13 added
2 edited

Legend:

Unmodified
Added
Removed
  • underconstruction/trunk/readme.txt

    r724113 r727547  
    55Requires at least: 2.7
    66Tested up to: 3.5.1
    7 Stable tag: 1.10
     7Stable tag: 1.11
    88
    99Creates a 'Coming Soon' page that will show for all users who are not logged in
     
    4343
    4444== Changelog ==
     45
     46= 1.11 =
     47* Fixes a bug where users couldn't log in
    4548
    4649= 1.10 =
  • underconstruction/trunk/underConstruction.php

    r724113 r727547  
    44 Plugin URI: http://www.masseltech.com/
    55 Description: Makes it so your site can only be accessed by users who log in. Useful for developing a site on a live server, without the world being able to see it
    6  Version: 1.10
     6 Version: 1.11
    77 Author: Jeremy Massel
    88 Author URI: http://www.masseltech.com/
     
    132132        }
    133133
    134         if(get_option('underConstructionRequiredRole')){
    135             $editable_roles = get_editable_roles();
     134        if(get_option('underConstructionRequiredRole') && is_user_logged_in()){
     135           
     136            global $wp_roles;
     137            $all_roles = $wp_roles->roles;
     138                   
     139            $editable_roles = apply_filters('editable_roles', $all_roles);
    136140
    137141            $required_role = $editable_roles[get_option('underConstructionRequiredRole')];
Note: See TracChangeset for help on using the changeset viewer.