Skip to content

Fix re-sync return to searched and filtered Users lists - #94

Merged
defunctl merged 3 commits into
fix/refresh-workos-membershipsfrom
fix/preserve-resync-user-list
Oct 28, 2026
Merged

defunctl merged 3 commits into
fix/refresh-workos-membershipsfrom
fix/preserve-resync-user-list

Conversation

@defunctl

@defunctl defunctl commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Main Changes

Administrators who search or filter the Users screen lose their place after clicking Re-sync. The action now returns them to the same search, filters, sorting, and page on both success and failure, including filters added by other plugins.

The row link carries an explicit return address using WordPress’s referer convention. The handler reads it with wp_get_referer(), accepts only this site's Users screen, removes action parameters and stale notices, and redirects with wp_safe_redirect(). Invalid return addresses fall back to the unfiltered Users list. Existing target-specific nonce and permission checks remain in place.

Stacked on #93, targeting fix/refresh-workos-memberships. Addresses the navigation issue shown in the reported videos.

Other

Remove double slashes in WorkOS error message

Before:
image

After:
image

@defunctl defunctl self-assigned this Oct 28, 2026
@defunctl defunctl added this to the 1.0.11 milestone Oct 28, 2026
@defunctl
defunctl requested a review from bordoni October 28, 2026 15:47
@defunctl
defunctl merged commit 98877dc into fix/refresh-workos-memberships Oct 28, 2026
7 checks passed
@defunctl
defunctl deleted the fix/preserve-resync-user-list branch October 28, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants