Skip to content

Commit f93114f

Browse files
authored
Accept user login and email in spam and unspam commands (#485)
1 parent b180a66 commit f93114f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6281,13 +6281,13 @@ wp user set-role <user> [<role>]
62816281
Marks one or more users as spam on multisite.
62826282

62836283
~~~
6284-
wp user spam <id>...
6284+
wp user spam <user>...
62856285
~~~
62866286

62876287
**OPTIONS**
62886288

6289-
<id>...
6290-
One or more IDs of users to mark as spam.
6289+
<user>...
6290+
The user login, user email, or user ID of the user(s) to mark as spam.
62916291

62926292
**EXAMPLES**
62936293

@@ -6466,13 +6466,13 @@ Replaces existing terms on the object.
64666466
Removes one or more users from spam on multisite.
64676467

64686468
~~~
6469-
wp user unspam <id>...
6469+
wp user unspam <user>...
64706470
~~~
64716471

64726472
**OPTIONS**
64736473

6474-
<id>...
6475-
One or more IDs of users to remove from spam.
6474+
<user>...
6475+
The user login, user email, or user ID of the user(s) to remove from spam.
64766476

64776477
**EXAMPLES**
64786478

src/User_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ public static function wp_new_user_notification( $user_id, $password ) {
13211321
*
13221322
* ## OPTIONS
13231323
*
1324-
* <id>...
1325-
* : One or more IDs of users to mark as spam.
1324+
* <user>...
1325+
* : The user login, user email, or user ID of the user(s) to mark as spam.
13261326
*
13271327
* ## EXAMPLES
13281328
*
@@ -1340,8 +1340,8 @@ public function spam( $args ) {
13401340
*
13411341
* ## OPTIONS
13421342
*
1343-
* <id>...
1344-
* : One or more IDs of users to remove from spam.
1343+
* <user>...
1344+
* : The user login, user email, or user ID of the user(s) to remove from spam.
13451345
*
13461346
* ## EXAMPLES
13471347
*

0 commit comments

Comments
 (0)