fix: clear a user's presence when their account or site membership ends - #339
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
▶ Preview in WordPress PlaygroundBoots a fresh WordPress with this PR's presence-api build, seeds 5 demo users, and drops you on the dashboard. Stress-test variant: 40 demo users · Built from |
|
Base branch is gone. #299 and #313 were closed today and replaced by a stack, #332 through #337, so Retarget to #328 has the same base problem; note on the issue. |
josephfusco
left a comment
There was a problem hiding this comment.
This looks good to me. Thanks for adding!
37bb342
into
WordPress:feature/network-presence-screen
Description
Fixes #327
Hooks
deleted_userandremove_user_from_blogto clear a user's presence immediately instead of leaving rows to age out on TTL. Re-pushing the network summary falls out for free —wp_remove_user_presence()already fires the change signal the push is wired to.Testing
wpmu_delete_user()clearing presence across every site a user belonged to.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 5
Used for: Implementation and tests