Skip to content

Commit 757d0f4

Browse files
committed
Make output of transient type generic to include multisite behaviour.
1 parent 92d7af8 commit 757d0f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Transient_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,23 +199,23 @@ 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 $_wp_using_ext_object_cache, $wpdb;
213+
global $_wp_using_ext_object_cache;
214214

215215
if ( $_wp_using_ext_object_cache )
216216
$message = 'Transients are saved to the object cache.';
217217
else
218-
$message = 'Transients are saved to the ' . $wpdb->prefix . 'options table.';
218+
$message = 'Transients are saved to the database.';
219219

220220
WP_CLI::line( $message );
221221
}

0 commit comments

Comments
 (0)