You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Empty the table once link related cache and term is removed.
143
+
$wpdb->query( "TRUNCATE {$wpdb->links}" );
144
+
}
145
+
118
146
/**
119
147
* Insert default terms.
120
148
*/
@@ -211,7 +239,7 @@ private function reset_options() {
211
239
* ## EXAMPLES
212
240
*
213
241
* $ wp site empty
214
-
* Are you sure you want to empty the site at http://www.example.com of all posts, comments, and terms? [y/n] y
242
+
* Are you sure you want to empty the site at http://www.example.com of all posts, links, comments, and terms? [y/n] y
215
243
* Success: The site at 'http://www.example.com' was emptied.
216
244
*
217
245
* @subcommand empty
@@ -223,9 +251,10 @@ public function empty_( $args, $assoc_args ) {
223
251
$upload_message = ', and delete its uploads directory';
224
252
}
225
253
226
-
WP_CLI::confirm( "Are you sure you want to empty the site at '" . site_url() . "' of all posts, comments, and terms" . $upload_message . '?', $assoc_args );
254
+
WP_CLI::confirm( "Are you sure you want to empty the site at '" . site_url() . "' of all posts, links, comments, and terms" . $upload_message . '?', $assoc_args );
0 commit comments