v0.3.2
Introduces the Honor Effective Date setting for re:Members membership access control. Improves NOVI AMS credential validation, login redirect handling, and PHP 7.4 compatibility. Fixes a number of admin UI and error-handling issues.
Adds
- [RE:MEMBERS] Adds an
Honor Effective Datesetting on the re:Members Settings page. When enabled, member role access begins only when the membershipeffectiveDatehas been reached.
Changes
- [RE:MEMBERS] Member access now defaults to the earlier of
effectiveDateorjoinDate(unlessHonor Effective Dateis enabled). This means members who join before their official term start date will receive access immediately by default. - [NOVI]
is_connected()now validates that all required credentials (Base URL, Client ID, and Client Secret) are present before reporting a connected state. - [NOVI] Login redirect validation now uses
wp_validate_redirect()andwp_sanitize_redirect()to correctly support both absolute and relative URLs (e.g./my-page).
Fixes
- [NOVI] Fixes a PHP parse error on PHP 7.4 caused by a named argument (
callback:) passed toadd_filter(). - [NOVI] Removes unreachable code after
wp_die()in the login exception handler; login errors now redirect to the home page with a cache-buster. - [NOVI]
check_response()andget_parsed_response()now handleWP_Errorand non-array HTTP responses gracefully instead of masking the original failure. - [ADMIN] Fixes disabled AMS
<select>not submitting its value by injecting a hidden input when the field is disabled via theAMSC_CONNECTED_AMSconstant. - [ADMIN] Select2 multi-role selector initialization is now guarded so it only runs on screens where the Select2 library is enqueued, preventing JS errors on other admin screens.