Verified Commit d06855b0 authored by Erick Hitter's avatar Erick Hitter
Browse files

Prompt between calculating how many entries there are to remove, and any further queries.

parent 43be2e95
......@@ -29,6 +29,7 @@ class One_Time_Fixers extends \WP_CLI_Command {
if ( is_numeric( $count ) ) {
$count = (int) $count;
\WP_CLI::line( sprintf( __( 'Found %s total items', 'automattic-cron-control' ), number_format_i18n( $count ) ) . "\n\n" );
\WP_CLI::confirm( __( 'Proceed?', 'automattic-cron-control' ) );
} else {
\WP_CLI::error( __( 'Something went wrong...aborting!', 'automattic-cron-control' ) );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment