diff --git a/AGENTS.md b/AGENTS.md index 9d0a92e..989551b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ Enterprise identity management for WordPress powered by WorkOS. SSO, directory sync, MFA, and user management. -- **Version:** 1.0.6 +- **Version:** 1.0.7 - **Namespace:** `WorkOS\` - **PHP Requirement:** 7.4+ - **WordPress Requirement:** 5.9+ diff --git a/CHANGELOG.md b/CHANGELOG.md index 95c58e3..18a54fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.0.7] - 2026-06-23 + +### Fixed + +- **Active environment no longer reverts on settings save** (#34) — saving WorkOS settings no longer resets `workos_active_environment` to `staging` when the active environment field is absent from the form. The sanitizer now preserves the current active environment, including legacy `workos_global['active_environment']` fallback state. + ## [1.0.6] - 2026-06-11 ### Added diff --git a/integration-workos.php b/integration-workos.php index 89b4807..644e572 100644 --- a/integration-workos.php +++ b/integration-workos.php @@ -3,7 +3,7 @@ * Plugin Name: Integration with WorkOS * Plugin URI: https://github.com/bordoni/integration-workos * Description: Enterprise identity management for WordPress powered by WorkOS. SSO, directory sync, MFA, and user management. - * Version: 1.0.6 + * Version: 1.0.7 * Author: Gustavo Bordoni * Author URI: https://github.com/bordoni * License: GPL-2.0-or-later diff --git a/package.json b/package.json index be807a6..d831cc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "integration-workos", - "version": "1.0.1", + "version": "1.0.7", "description": "Enterprise identity management for WordPress powered by WorkOS.", "private": true, "scripts": { diff --git a/readme.txt b/readme.txt index 649c534..47b9ee5 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: sso, identity, workos, authentication, directory-sync Requires at least: 6.2 Tested up to: 6.9 Requires PHP: 7.4 -Stable tag: 1.0.6 +Stable tag: 1.0.7 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -175,6 +175,10 @@ WorkOS is provided by WorkOS, Inc. == Changelog == += 1.0.7 - 2026-06-23 = + +* Fix: Active environment no longer reverts on settings save. Saving WorkOS settings no longer resets `workos_active_environment` to `staging` when the active environment field is absent from the form. The sanitizer now preserves the current active environment, including legacy `workos_global['active_environment']` fallback state. (#34) + = 1.0.6 - 2026-06-11 = * New: WorkOS-verified change-email flow. Self-service `[workos:change-email]` shortcode + admin row action on `wp-admin/users.php` + panel on the user-edit screen. The new address must be confirmed via a hashed token emailed by the plugin (because WorkOS's `email_verification` endpoints can't verify a *pending* change); the old address simultaneously receives a one-click cancel link. Configurable conflict policy (`block` default, `allow_orphan`, `merge_request`) keeps the new email from silently overwriting another local WP user. Commits to WorkOS first (`update_user`) and then mirrors into WordPress, with a 60-second in-progress transient that short-circuits the webhook fan-back. Eight new filters, five new actions, seven new activity-log events, and 40 new WPUnit tests. See `docs/change-email.md`. (#22) @@ -262,6 +266,9 @@ Base platform: == Upgrade Notice == += 1.0.7 = +Fixes settings saves resetting the active WorkOS environment to Staging when the environment field is absent from the form. The saved active environment is now preserved, including legacy fallback state. + = 1.0.6 = Adds a WorkOS-verified change-email flow (self-service `[workos:change-email]` shortcode, admin row action, and user-edit panel) with hashed confirm/cancel tokens, a configurable conflict policy, and an old-address cancel notice. Also adds two per-environment magic-code registration toggles (default and legacy sign-in forms) that close an account-enumeration leak by no longer creating accounts — or revealing whether an address exists — for unknown emails when registration is off. Fixes a username-generation memory exhaustion that prevented users with popular email local parts (e.g. `info@`) from being provisioned: collisions now get a hash-derived suffix instead of sequential probing. diff --git a/src/WorkOS/Plugin.php b/src/WorkOS/Plugin.php index 31e24ae..302caf8 100644 --- a/src/WorkOS/Plugin.php +++ b/src/WorkOS/Plugin.php @@ -57,7 +57,7 @@ class Plugin { * * @var string */ - private string $version = '1.0.6'; + private string $version = '1.0.7'; /** * Container instance.