-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
command:userRelated to 'user' commandRelated to 'user' commandcommand:user-deleteRelated to 'user delete' commandRelated to 'user delete' commandgood-first-issueGood for newcomersGood for newcomers
Milestone
Description
Bug Report
I'm not certain this is a bug, but it is confusing behavior.
Trying to delete a user from a site on multisite network( without the --network flag ) seems to always result in success.
If a matching user is found on the multisite, the command always outputs - Success: Removed user ... from ....
To replicate:
wp user create rando rando@rando.com
wp user delete rando --reassign=1 --yes
wp user delete rando --reassign=1 --yes
I suggest If the user exists on the network, but is not found on the blog where the deletion is being run, then that would be more useful to output. Something like:
Notice: The network user with [ email | user ID | login ]:[ user ] was not found on blog:[ blog/subsite ], no users deleted.
Running on:
OS: Linux 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64
Shell: /bin/bash
PHP binary: /usr/local/bin/php
PHP version: 8.0.28
php.ini used:
MySQL binary:
MySQL version:
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /var/www/html
WP-CLI packages dir:
WP-CLI cache dir: /home/wp_php/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.7.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command:userRelated to 'user' commandRelated to 'user' commandcommand:user-deleteRelated to 'user delete' commandRelated to 'user delete' commandgood-first-issueGood for newcomersGood for newcomers
