From e29843a83bb24b0a9a4254780a8adccaca71f03b Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Tue, 5 Dec 2017 09:50:03 -0700 Subject: [PATCH 1/6] Convert wp cache subcommand help summaries to use third-person singular verbs. --- src/Cache_Command.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Cache_Command.php b/src/Cache_Command.php index da5e0930d..0dc051f8f 100644 --- a/src/Cache_Command.php +++ b/src/Cache_Command.php @@ -1,7 +1,7 @@ Date: Tue, 5 Dec 2017 09:51:17 -0700 Subject: [PATCH 2/6] Convert wp transient subcommand help summaries to use third-person singular verbs. --- src/Transient_Command.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Transient_Command.php b/src/Transient_Command.php index 63f10f922..9af7dbf29 100644 --- a/src/Transient_Command.php +++ b/src/Transient_Command.php @@ -1,7 +1,7 @@ ` is the time until expiration, in seconds. * @@ -113,7 +113,7 @@ public function set( $args, $assoc_args ) { } /** - * Delete a transient value. + * Deletes a transient value. * * ## OPTIONS * @@ -176,7 +176,7 @@ public function delete( $args, $assoc_args ) { } /** - * Determine type of transients implementation. + * Determines the type of transients implementation. * * Indicates whether the transients API is using an object cache or the * options table. @@ -198,7 +198,7 @@ public function type() { } /** - * Delete all expired transients. + * Deletes all expired transients. */ private function delete_expired() { global $wpdb, $_wp_using_ext_object_cache; @@ -225,7 +225,7 @@ private function delete_expired() { } /** - * Delete all transients. + * Deletes all transients. */ private function delete_all() { global $wpdb, $_wp_using_ext_object_cache; From 079157b27824d0e3e6e94664df674c734553b017 Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Tue, 5 Dec 2017 10:15:08 -0700 Subject: [PATCH 3/6] Use a more descriptive summary for cache. --- src/Cache_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache_Command.php b/src/Cache_Command.php index 0dc051f8f..cca4ec3ae 100644 --- a/src/Cache_Command.php +++ b/src/Cache_Command.php @@ -1,7 +1,7 @@ Date: Tue, 5 Dec 2017 10:16:23 -0700 Subject: [PATCH 4/6] Add a more descriptive summary for transient. --- src/Transient_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transient_Command.php b/src/Transient_Command.php index 9af7dbf29..402ba2e13 100644 --- a/src/Transient_Command.php +++ b/src/Transient_Command.php @@ -1,7 +1,7 @@ Date: Tue, 5 Dec 2017 09:48:31 -0800 Subject: [PATCH 5/6] Update README with new descriptions --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d07261b98..290bc1344 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This package implements the following commands: ### wp cache -Manipulate the WP Object Cache object. +Adds, removes, fetches, and flushes the WP Object Cache object. ~~~ wp cache @@ -40,7 +40,7 @@ for more detail. ### wp cache add -Add a value to the object cache. +Adds a value to the object cache. ~~~ wp cache add [] [] @@ -79,7 +79,7 @@ be added. ### wp cache decr -Decrement a value in the object cache. +Decrements a value in the object cache. ~~~ wp cache decr [] [] @@ -114,7 +114,7 @@ Errors if the value can't be decremented. ### wp cache delete -Remove a value from the object cache. +Removes a value from the object cache. ~~~ wp cache delete [] @@ -143,7 +143,7 @@ Errors if the value can't be deleted. ### wp cache flush -Flush the object cache. +Flushes the object cache. ~~~ wp cache flush @@ -166,7 +166,7 @@ Errors if the object cache can't be flushed. ### wp cache get -Get a value from the object cache. +Gets a value from the object cache. ~~~ wp cache get [] @@ -195,7 +195,7 @@ Errors if the value doesn't exist. ### wp cache incr -Increment a value in the object cache. +Increments a value in the object cache. ~~~ wp cache incr [] [] @@ -230,7 +230,7 @@ Errors if the value can't be incremented. ### wp cache replace -Replace a value in the object cache, if the value already exists. +Replaces a value in the object cache, if the value already exists. ~~~ wp cache replace [] [] @@ -268,7 +268,7 @@ Errors if the value can't be replaced. ### wp cache set -Set a value to the object cache, regardless of whether it already exists. +Sets a value to the object cache, regardless of whether it already exists. ~~~ wp cache set [] [] @@ -327,7 +327,7 @@ ability to determine which object cache is being used. ### wp transient -Manipulate the WordPress Transient Cache. +Adds, gets, and deletes entries in the WordPress Transient Cache. ~~~ wp transient @@ -363,7 +363,7 @@ transient cache also uses the WordPress Object Cache. ### wp transient delete -Delete a transient value. +Deletes a transient value. ~~~ wp transient delete [] [--network] [--all] [--expired] @@ -401,7 +401,7 @@ wp transient delete [] [--network] [--all] [--expired] ### wp transient get -Get a transient value. +Gets a transient value. ~~~ wp transient get [--format=] [--network] @@ -438,7 +438,7 @@ wp transient get [--format=] [--network] ### wp transient set -Set a transient value. +Sets a transient value. ~~~ wp transient set [] [--network] @@ -469,7 +469,7 @@ wp transient set [] [--network] ### wp transient type -Determine type of transients implementation. +Determines the type of transients implementation. ~~~ wp transient type From c1e03ee71bfc99b756981d8d3096334d71854ca0 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 5 Dec 2017 09:49:25 -0800 Subject: [PATCH 6/6] Third-person for this description too --- .github/settings.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/settings.yml b/.github/settings.yml index 1326f177b..ef89f7872 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -1,6 +1,6 @@ # Used by Probot Settings: https://probot.github.io/apps/settings/ repository: - description: Manage object and transient caches. + description: Manages object and transient caches. labels: - name: bug color: fc2929 diff --git a/composer.json b/composer.json index da4ad5565..cc65aa45b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "wp-cli/cache-command", - "description": "Manage object and transient caches.", + "description": "Manages object and transient caches.", "type": "wp-cli-package", "homepage": "https://github.com/wp-cli/cache-command", "support": {