Improve wp user remove-role docs and output when no role argument is given#580
Merged
swissspidy merged 6 commits intomainfrom Mar 2, 2026
Merged
Improve wp user remove-role docs and output when no role argument is given#580swissspidy merged 6 commits intomainfrom
wp user remove-role docs and output when no role argument is given#580swissspidy merged 6 commits intomainfrom
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix display message for wp user remove-role without role argument
Improve Feb 26, 2026
wp user remove-role docs and output when no role argument is given
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
swissspidy
reviewed
Feb 26, 2026
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot stopped work on behalf of
swissspidy due to an error
February 26, 2026 10:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
swissspidy
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
wp user remove-role <id>is called without a role argument, it silently removes all roles from the user (or removes the user from the blog on multisite). The behavior was undocumented and the success message—Removed {user} ({id}) from {site_url}.—sounded like the user account was deleted.Changes
"Removed all roles from {user} ({id}) on {site_url}."— clearly signals role removal, not account deletion"Removed {user} ({id}) from {site_url}."— accurately reflects that the user was removed from the site/blog[<role>...](including the multisite nuance) and adds separate examples for single-site and multisiteOriginal prompt
wp user remove-role <id>with no role arguments could produce a less scary display result #291🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.