Plugin Directory

Changeset 3364644


Ignore:
Timestamp:
09/19/2025 03:54:45 PM (4 months ago)
Author:
husobj
Message:

Version 1.2.2

Location:
expire-users/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • expire-users/trunk/expire-users.php

    r2895489 r3364644  
    55Plugin URI: http://wordpress.org/extend/plugins/expire-users/
    66Description: Set expiry dates for user logins.
    7 Version: 1.2.1
     7Version: 1.2.2
    88Author: Ben Huson
    99Author URI: https://github.com/benhuson/expire-users
     
    1212Requires at least: 5.4
    1313Requires PHP: 7.4
    14 Tested up to: 6.2
     14Tested up to: 6.8.2
    1515Text Domain: expire-users
    1616Domain Path: /languages
     
    1818
    1919// Version
    20 define( 'EXPIRE_USERS_VERSION', '1.2' );
     20define( 'EXPIRE_USERS_VERSION', '1.2.2' );
    2121define( 'EXPIRE_USERS_DB_VERSION', '1' );
    2222
  • expire-users/trunk/includes/expire-user.php

    r2438129 r3364644  
    159159     */
    160160    function set_default_to_role( $role ) {
    161         $this->on_expire_default_to_role = $role;
     161        if ( wp_roles()->is_role( $role ) ) {
     162            $this->on_expire_default_to_role = $role;
     163        }
    162164    }
    163165
     
    276278            }
    277279        }
    278         $this->set_default_to_role( $data['expire_user_role'] );
     280        if ( isset( $data['expire_user_role'] ) ) {
     281            $this->set_default_to_role( $data['expire_user_role'] );
     282        }
    279283        $this->on_expire_user_reset_password = isset( $data['expire_user_reset_password'] ) && $data['expire_user_reset_password'] == 'Y';
    280284        $this->on_expire_user_email          = isset( $data['expire_user_email'] ) && $data['expire_user_email'] == 'Y';
  • expire-users/trunk/readme.txt

    r2895489 r3364644  
    44Tags: users, password, expire, login, roles
    55Requires at least: 5.4
    6 Tested up to: 6.2
    7 Stable tag: 1.2.1
     6Tested up to: 6.8.2
     7Stable tag: 1.2.2
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    6060
    6161== Changelog ==
     62
     63= 1.2.2 =
     64* Fix checking of role when saving expiry data.
     65* Tested up to WordPress 6.8.2
    6266
    6367= 1.2.1 =
     
    147151== Upgrade Notice ==
    148152
     153= 1.2.2 =
     154Fix checking of role data. Tested up to WordPress 6.8.2
     155
    149156= 1.2.1 =
    150157Tested up to WordPress 6.2 and PHP 8.2
Note: See TracChangeset for help on using the changeset viewer.