Closed Rvervuurt closed 8 months ago
Hey @Rvervuurt,
The concept of marking a user as spam only exists in WordPress multisite:
Multisite
Standard
Whenever relevant, WP-CLI emulates wp-admin, so this isn't behavior we'll change.
How would you recommend we improve the documentation? Want to submit a PR with your suggested changes?
Ah that makes sense! I didn't know it was multisite-only!
There must be other multisite-commands, how are they documented?
There must be other multisite-commands, how are they documented?
@Rvervuurt That's a good question. They generally aren't explicitly documented as such, but usually have some reference to multisite:
We could say something like:
Marks one or more users as spam on multisite.
Or:
Marks one or more users as spam.
Spam users only exist on multisite.
Do you have a preference? Or another suggestion?
Bug Report
Describe the current, buggy behavior
I'm trying to mark a user as spam with
wp user spam *ID*
, but I get the errorError: This is not a multisite installation.
Describe how other contributors can replicate this bug
wp user generate
wp user spam 50
Describe what you would expect as the correct outcome
I expect user 50 to be registered as spam, as the (docs)[https://developer.wordpress.org/cli/commands/user/spam/] make me think it should, no matter if it's a multiste or not.
Let us know what environment you are running this on
Provide additional context/Screenshots