Skip to content

Commit e8ac723

Browse files
Clean up output and test
1 parent 3d9fa1d commit e8ac723

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/cron.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Feature: Manage WP-Cron events and schedules
389389
"""
390390
And I run `wp eval-file update.php`
391391

392-
When I run `wp cron event list`
392+
When I try `wp cron event list`
393393
Then STDOUT should contain:
394394
"""
395395
postindexer_secondpass_cron

src/Cron_Event_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ protected static function get_cron_events( $is_due_now = false ) {
452452

453453
// Incorrectly registered cron events can produce a string key.
454454
if ( is_string( $time ) ) {
455-
WP_CLI::warning( sprintf( 'Ignoring invalid cron event ("%s").', $time ) );
455+
WP_CLI::warning( sprintf( 'Ignoring incorrectly registered cron event "%s".', $time ) );
456456
continue;
457457
}
458458

0 commit comments

Comments
 (0)