Changeset 3364644
- Timestamp:
- 09/19/2025 03:54:45 PM (4 months ago)
- Location:
- expire-users/trunk
- Files:
-
- 3 edited
-
expire-users.php (modified) (3 diffs)
-
includes/expire-user.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
expire-users/trunk/expire-users.php
r2895489 r3364644 5 5 Plugin URI: http://wordpress.org/extend/plugins/expire-users/ 6 6 Description: Set expiry dates for user logins. 7 Version: 1.2. 17 Version: 1.2.2 8 8 Author: Ben Huson 9 9 Author URI: https://github.com/benhuson/expire-users … … 12 12 Requires at least: 5.4 13 13 Requires PHP: 7.4 14 Tested up to: 6. 214 Tested up to: 6.8.2 15 15 Text Domain: expire-users 16 16 Domain Path: /languages … … 18 18 19 19 // Version 20 define( 'EXPIRE_USERS_VERSION', '1.2 ' );20 define( 'EXPIRE_USERS_VERSION', '1.2.2' ); 21 21 define( 'EXPIRE_USERS_DB_VERSION', '1' ); 22 22 -
expire-users/trunk/includes/expire-user.php
r2438129 r3364644 159 159 */ 160 160 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 } 162 164 } 163 165 … … 276 278 } 277 279 } 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 } 279 283 $this->on_expire_user_reset_password = isset( $data['expire_user_reset_password'] ) && $data['expire_user_reset_password'] == 'Y'; 280 284 $this->on_expire_user_email = isset( $data['expire_user_email'] ) && $data['expire_user_email'] == 'Y'; -
expire-users/trunk/readme.txt
r2895489 r3364644 4 4 Tags: users, password, expire, login, roles 5 5 Requires at least: 5.4 6 Tested up to: 6. 27 Stable tag: 1.2. 16 Tested up to: 6.8.2 7 Stable tag: 1.2.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 60 60 61 61 == Changelog == 62 63 = 1.2.2 = 64 * Fix checking of role when saving expiry data. 65 * Tested up to WordPress 6.8.2 62 66 63 67 = 1.2.1 = … … 147 151 == Upgrade Notice == 148 152 153 = 1.2.2 = 154 Fix checking of role data. Tested up to WordPress 6.8.2 155 149 156 = 1.2.1 = 150 157 Tested up to WordPress 6.2 and PHP 8.2
Note: See TracChangeset
for help on using the changeset viewer.