Skip to content

Better guide users when deleting other users in single- and multisites; copy 10502#12467

Closed
joedolson wants to merge 41 commits into
WordPress:trunkfrom
joedolson:copy-10502
Closed

Better guide users when deleting other users in single- and multisites; copy 10502#12467
joedolson wants to merge 41 commits into
WordPress:trunkfrom
joedolson:copy-10502

Conversation

@joedolson

Copy link
Copy Markdown
Contributor

This is a copy of #10502 with changes applied from @afercia and my own reviews, because I was unable to merge to that PR.

It does not include the switch of strings to use _n(), as I'm not convinced that the churn in strings is helpful.

Trac ticket: https://core.trac.wordpress.org/ticket/56914

Use of AI Tools

None


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

ocean90 and others added 30 commits February 3, 2026 10:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Refactor the IIFE structure and remove unnecessary code.
…nd providing accessible error summaries. This update ensures that users cannot be deleted without a valid reassignment target, improving both functionality and accessibility for assistive technologies.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props ocean90, hubersen, joedolson.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@ocean90 ocean90 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @joedolson and @afercia! This is now looking very good!

Do you want to bring this over the finish line so it can be part of 7.1? Happy to do so otherwise.

@joedolson

Copy link
Copy Markdown
Contributor Author

I've got it on my todo list to commit today, so I can go ahead and take care of it!

@joedolson joedolson left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating since references.

Comment thread src/wp-admin/includes/deprecated.php Outdated
Comment thread src/js/_enqueues/admin/common.js Outdated
Comment thread src/wp-admin/includes/deprecated.php Outdated
pento pushed a commit that referenced this pull request Jul 10, 2026
Provide clearer guidance for reassigning or deleting content when deleting users in both single and multisite instances. Content assignment is handled on a per-user basis, rather than forcing all content to be assigned to a single user. Add validation to enforce making a selection. Add fieldsets and legends to improve form structure and accessibility. Move inline JS to `common.js`. Improve backend logic to process per-user content handling. Exclude users being deleted from dropdown forms.

Developed in #10502, #12467

Props stefan.velthuys, ocean90, hellofromTonya, akshat2802, hubersen, fakhriaz, ozgursar, sirlouen, realloc, audrasjb, joedolson, afercia, krokodok.
Fixes #56914.

git-svn-id: https://develop.svn.wordpress.org/trunk@62688 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 62688
GitHub commit: 3ec2726

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Jul 10, 2026
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Jul 10, 2026
Provide clearer guidance for reassigning or deleting content when deleting users in both single and multisite instances. Content assignment is handled on a per-user basis, rather than forcing all content to be assigned to a single user. Add validation to enforce making a selection. Add fieldsets and legends to improve form structure and accessibility. Move inline JS to `common.js`. Improve backend logic to process per-user content handling. Exclude users being deleted from dropdown forms.

Developed in WordPress/wordpress-develop#10502, WordPress/wordpress-develop#12467

Props stefan.velthuys, ocean90, hellofromTonya, akshat2802, hubersen, fakhriaz, ozgursar, sirlouen, realloc, audrasjb, joedolson, afercia, krokodok.
Fixes #56914.
Built from https://develop.svn.wordpress.org/trunk@62688


git-svn-id: http://core.svn.wordpress.org/trunk@61972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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.

3 participants