File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments