Skip to content

Commit 535857a

Browse files
Merge pull request #114 from DrewAPicture/issue/doc-verbs
Convert entity command help summaries to use third-person singular verbs.
2 parents 9354e3b + 864b345 commit 535857a

21 files changed

+208
-208
lines changed

README.md

Lines changed: 98 additions & 98 deletions
Large diffs are not rendered by default.

src/Comment_Command.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct() {
4444
}
4545

4646
/**
47-
* Create a new comment.
47+
* Creates a new comment.
4848
*
4949
* ## OPTIONS
5050
*
@@ -87,7 +87,7 @@ public function create( $args, $assoc_args ) {
8787
}
8888

8989
/**
90-
* Update one or more comments.
90+
* Updates one or more comments.
9191
*
9292
* ## OPTIONS
9393
*
@@ -115,7 +115,7 @@ public function update( $args, $assoc_args ) {
115115
}
116116

117117
/**
118-
* Generate some number of new dummy comments.
118+
* Generates some number of new dummy comments.
119119
*
120120
* Creates a specified number of new comments with dummy data.
121121
*
@@ -194,7 +194,7 @@ public function generate( $args, $assoc_args ) {
194194
}
195195

196196
/**
197-
* Get data of a single comment.
197+
* Gets the data of a single comment.
198198
*
199199
* ## OPTIONS
200200
*
@@ -241,7 +241,7 @@ public function get( $args, $assoc_args ) {
241241
}
242242

243243
/**
244-
* Get a list of comments.
244+
* Gets a list of comments.
245245
*
246246
* ## OPTIONS
247247
*
@@ -366,7 +366,7 @@ public function list_( $_, $assoc_args ) {
366366
}
367367

368368
/**
369-
* Delete a comment.
369+
* Deletes a comment.
370370
*
371371
* ## OPTIONS
372372
*
@@ -431,7 +431,7 @@ private function set_status( $args, $status, $success ) {
431431
}
432432

433433
/**
434-
* Warn if `$_SERVER['SERVER_NAME']` not set as used in email from-address sent to post author in `wp_notify_postauthor()`.
434+
* Warns if `$_SERVER['SERVER_NAME']` not set as used in email from-address sent to post author in `wp_notify_postauthor()`.
435435
*/
436436
private function check_server_name() {
437437
if ( empty( $_SERVER['SERVER_NAME'] ) ) {
@@ -441,7 +441,7 @@ private function check_server_name() {
441441
}
442442

443443
/**
444-
* Trash a comment.
444+
* Trashes a comment.
445445
*
446446
* ## OPTIONS
447447
*
@@ -461,7 +461,7 @@ public function trash( $args, $assoc_args ) {
461461
}
462462

463463
/**
464-
* Untrash a comment.
464+
* Untrashes a comment.
465465
*
466466
* ## OPTIONS
467467
*
@@ -482,7 +482,7 @@ public function untrash( $args, $assoc_args ) {
482482
}
483483

484484
/**
485-
* Mark a comment as spam.
485+
* Marks a comment as spam.
486486
*
487487
* ## OPTIONS
488488
*
@@ -502,7 +502,7 @@ public function spam( $args, $assoc_args ) {
502502
}
503503

504504
/**
505-
* Unmark a comment as spam.
505+
* Unmarks a comment as spam.
506506
*
507507
* ## OPTIONS
508508
*
@@ -523,7 +523,7 @@ public function unspam( $args, $assoc_args ) {
523523
}
524524

525525
/**
526-
* Approve a comment.
526+
* Approves a comment.
527527
*
528528
* ## OPTIONS
529529
*
@@ -544,7 +544,7 @@ public function approve( $args, $assoc_args ) {
544544
}
545545

546546
/**
547-
* Unapprove a comment.
547+
* Unapproves a comment.
548548
*
549549
* ## OPTIONS
550550
*
@@ -565,7 +565,7 @@ public function unapprove( $args, $assoc_args ) {
565565
}
566566

567567
/**
568-
* Count comments, on whole blog or on a given post.
568+
* Counts comments, on whole blog or on a given post.
569569
*
570570
* ## OPTIONS
571571
*
@@ -610,7 +610,7 @@ public function count( $args, $assoc_args ) {
610610
}
611611

612612
/**
613-
* Recalculate the comment_count value for one or more posts.
613+
* Recalculates the comment_count value for one or more posts.
614614
*
615615
* ## OPTIONS
616616
*
@@ -636,7 +636,7 @@ public function recount( $args ) {
636636
}
637637

638638
/**
639-
* Get status of a comment.
639+
* Gets the status of a comment.
640640
*
641641
* ## OPTIONS
642642
*
@@ -662,7 +662,7 @@ public function status( $args, $assoc_args ) {
662662
}
663663

664664
/**
665-
* Verify whether a comment exists.
665+
* Verifies whether a comment exists.
666666
*
667667
* Displays a success message if the comment does exist.
668668
*

src/Comment_Meta_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Manage comment custom fields.
4+
* Adds, updates, deletes, and lists comment custom fields.
55
*
66
* ## EXAMPLES
77
*

src/Menu_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Menu_Command extends WP_CLI_Command {
4444
);
4545

4646
/**
47-
* Create a new menu.
47+
* Creates a new menu.
4848
*
4949
* ## OPTIONS
5050
*
@@ -79,7 +79,7 @@ public function create( $args, $assoc_args ) {
7979
}
8080

8181
/**
82-
* Delete one or more menus.
82+
* Deletes one or more menus.
8383
*
8484
* ## OPTIONS
8585
*
@@ -109,7 +109,7 @@ public function delete( $args, $_ ) {
109109
}
110110

111111
/**
112-
* Get a list of menus.
112+
* Gets a list of menus.
113113
*
114114
* ## OPTIONS
115115
*

src/Menu_Item_Command.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Menu_Item_Command extends WP_CLI_Command {
3030
);
3131

3232
/**
33-
* Get a list of items associated with a menu.
33+
* Gets a list of items associated with a menu.
3434
*
3535
* ## OPTIONS
3636
*
@@ -115,7 +115,7 @@ public function list_( $args, $assoc_args ) {
115115
}
116116

117117
/**
118-
* Add a post as a menu item.
118+
* Adds a post as a menu item.
119119
*
120120
* ## OPTIONS
121121
*
@@ -173,7 +173,7 @@ public function add_post( $args, $assoc_args ) {
173173
}
174174

175175
/**
176-
* Add a taxonomy term as a menu item.
176+
* Adds a taxonomy term as a menu item.
177177
*
178178
* ## OPTIONS
179179
*
@@ -235,7 +235,7 @@ public function add_term( $args, $assoc_args ) {
235235
}
236236

237237
/**
238-
* Add a custom menu item.
238+
* Adds a custom menu item.
239239
*
240240
* ## OPTIONS
241241
*
@@ -286,7 +286,7 @@ public function add_custom( $args, $assoc_args ) {
286286
}
287287

288288
/**
289-
* Update a menu item.
289+
* Updates a menu item.
290290
*
291291
* ## OPTIONS
292292
*
@@ -340,7 +340,7 @@ public function update( $args, $assoc_args ) {
340340
}
341341

342342
/**
343-
* Delete one or more items from a menu.
343+
* Deletes one or more items from a menu.
344344
*
345345
* ## OPTIONS
346346
*

src/Menu_Location_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Manage a menu's assignment to locations.
4+
* Assigns, removes, and lists a menu's locations.
55
*
66
* ## EXAMPLES
77
*
@@ -25,7 +25,7 @@
2525
class Menu_Location_Command extends WP_CLI_Command {
2626

2727
/**
28-
* List locations for the current theme.
28+
* Lists locations for the current theme.
2929
*
3030
* ## OPTIONS
3131
*
@@ -87,7 +87,7 @@ function($o) {
8787
}
8888

8989
/**
90-
* Assign a location to a menu.
90+
* Assigns a location to a menu.
9191
*
9292
* ## OPTIONS
9393
*
@@ -127,7 +127,7 @@ public function assign( $args, $_ ) {
127127
}
128128

129129
/**
130-
* Remove a location from a menu.
130+
* Removes a location from a menu.
131131
*
132132
* ## OPTIONS
133133
*

src/Network_Meta_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Manage network custom fields.
4+
* Gets, adds, updates, deletes, and lists network custom fields.
55
*
66
* ## EXAMPLES
77
*

src/Option_Command.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class Option_Command extends WP_CLI_Command {
3232

3333
/**
34-
* Get the value for an option.
34+
* Gets the value for an option.
3535
*
3636
* ## OPTIONS
3737
*
@@ -83,7 +83,7 @@ public function get( $args, $assoc_args ) {
8383
}
8484

8585
/**
86-
* Add a new option value.
86+
* Adds a new option value.
8787
*
8888
* Errors if the option already exists.
8989
*
@@ -138,7 +138,7 @@ public function add( $args, $assoc_args ) {
138138
}
139139

140140
/**
141-
* List options and their values.
141+
* Lists options and their values.
142142
*
143143
* ## OPTIONS
144144
*
@@ -326,7 +326,7 @@ public function list_( $args, $assoc_args ) {
326326
}
327327

328328
/**
329-
* Update an option value.
329+
* Updates an option value.
330330
*
331331
* ## OPTIONS
332332
*
@@ -416,7 +416,7 @@ public function update( $args, $assoc_args ) {
416416
}
417417

418418
/**
419-
* Delete an option.
419+
* Deletes an option.
420420
*
421421
* ## OPTIONS
422422
*
@@ -440,7 +440,7 @@ public function delete( $args ) {
440440
}
441441

442442
/**
443-
* Get a nested value from an option.
443+
* Gets a nested value from an option.
444444
*
445445
* ## OPTIONS
446446
*
@@ -488,7 +488,7 @@ public function pluck( $args, $assoc_args ) {
488488
}
489489

490490
/**
491-
* Update a nested value in an option.
491+
* Updates a nested value in an option.
492492
*
493493
* ## OPTIONS
494494
*

0 commit comments

Comments
 (0)