Skip to content

Commit 1e57980

Browse files
authored
Merge branch 'master' into fix/wp_using_ext_object_cache
2 parents 1e80058 + 65866ba commit 1e57980

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Transient_Command.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,24 +199,21 @@ public function delete( $args, $assoc_args ) {
199199
* Determines the type of transients implementation.
200200
*
201201
* Indicates whether the transients API is using an object cache or the
202-
* options table.
202+
* database.
203203
*
204204
* For a more complete explanation of the transient cache, including the
205205
* network|site cache, please see docs for `wp transient`.
206206
*
207207
* ## EXAMPLES
208208
*
209209
* $ wp transient type
210-
* Transients are saved to the wp_options table.
210+
* Transients are saved to the database.
211211
*/
212212
public function type() {
213-
global $wpdb;
214-
215213
if ( wp_using_ext_object_cache() ) {
216214
$message = 'Transients are saved to the object cache.';
217-
} else {
218-
$message = 'Transients are saved to the ' . $wpdb->prefix . 'options table.';
219-
}
215+
else
216+
$message = 'Transients are saved to the database.';
220217

221218
WP_CLI::line( $message );
222219
}

0 commit comments

Comments
 (0)