Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot revoke super admin for non-existent user #5

Closed
danielbachhuber opened this issue Jul 24, 2017 · 0 comments
Closed

Cannot revoke super admin for non-existent user #5

danielbachhuber opened this issue Jul 24, 2017 · 0 comments

Comments

@danielbachhuber
Copy link
Member

Originally wp-cli/entity-command#31

Given a value for the site_admins site meta field which contains a username of a non-existent user, it's not possible to revoke this ghost super admin via WP-CLI.

The wp super-admin remove warns that the username you're attempting to revoke super admin access for is invalid, but then subsequently presents an incorrect success message:

$ wp super-admin remove admin
Warning: Invalid user ID, email or login: 'admin'
Success: Revoked super-admin capabilities.

In fact, the super-admin caps have not been revoked from the ghost admin user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants