Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
d06855b0
Verified
Commit
d06855b0
authored
Dec 05, 2016
by
Erick Hitter
Browse files
Prompt between calculating how many entries there are to remove, and any further queries.
parent
43be2e95
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/wp-cli/class-one-time-fixers.php
View file @
d06855b0
...
...
@@ -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'
)
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment