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
*/
@@ -214,7 +242,7 @@ private function reset_options() {
214
242
* ## EXAMPLES
215
243
*
216
244
* $ wp site empty
217
-
* Are you sure you want to empty the site at http://www.example.com of all posts, comments, and terms? [y/n] y
245
+
* Are you sure you want to empty the site at http://www.example.com of all posts, links, comments, and terms? [y/n] y
218
246
* Success: The site at 'http://www.example.com' was emptied.
219
247
*
220
248
* @subcommand empty
@@ -226,9 +254,10 @@ public function empty_( $args, $assoc_args ) {
226
254
$upload_message = ', and delete its uploads directory';
227
255
}
228
256
229
-
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 );
257
+
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