Commit 462e1c50 authored by Erick Hitter's avatar Erick Hitter Committed by GitHub
Browse files

Merge pull request #33 from Automattic/develop

Prompt between calculating how many entries there are to remove and performing any further queries.
parents 43be2e95 d06855b0
...@@ -29,6 +29,7 @@ class One_Time_Fixers extends \WP_CLI_Command { ...@@ -29,6 +29,7 @@ class One_Time_Fixers extends \WP_CLI_Command {
if ( is_numeric( $count ) ) { if ( is_numeric( $count ) ) {
$count = (int) $count; $count = (int) $count;
\WP_CLI::line( sprintf( __( 'Found %s total items', 'automattic-cron-control' ), number_format_i18n( $count ) ) . "\n\n" ); \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 { } else {
\WP_CLI::error( __( 'Something went wrong...aborting!', 'automattic-cron-control' ) ); \WP_CLI::error( __( 'Something went wrong...aborting!', 'automattic-cron-control' ) );
} }
......
Markdown is supported
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