Plugin Directory

Changeset 846431


Ignore:
Timestamp:
01/27/2014 06:40:12 PM (12 years ago)
Author:
knewton-wp
Message:

fixing remove_cap error

Location:
request-access/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • request-access/trunk/readme.txt

    r836251 r846431  
    44Requires at least: 3.0
    55Tested up to: 3.8
    6 Stable tag: 1.3
     6Stable tag: 1.4
    77License: GPL
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    6060= 1.1 =
    6161* Fixed plugin banner image
     62
     63= 1.4 =
     64* Fixed remove_cap error (see http://wordpress.org/support/topic/error-313?replies=1)
  • request-access/trunk/request-access.php

    r836251 r846431  
    44Plugin URI: http://www.knewton.com
    55Description: Allow users to request access to your website
    6 Version: 1.3
     6Version: 1.4
    77Author: Jon Tascher
    88Author URI: http://www.knewton.com
     
    6363            foreach (apply_filters('editable_roles', $wp_roles->roles) as $role) {
    6464                $role = get_role(strtolower($role['name']));
     65
     66                if (!is_object($role)) {
     67                    continue;
     68                }
    6569               
    6670                if ($role->name == 'administrator') {
Note: See TracChangeset for help on using the changeset viewer.