Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Cron_Event_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
$message = "No events found for hook '%1\$s'.";
}

WP_CLI::error( sprintf( $message, $hook ) );

Check failure on line 320 in src/Cron_Event_Command.php

View workflow job for this annotation

GitHub Actions / code-quality / PHPStan

Call to sprintf contains an invalid placeholder.

} else {
WP_CLI::success(
Expand Down Expand Up @@ -562,7 +562,7 @@
WP_CLI::error( 'Please use either --due-now or --all.' );
}

$events = self::get_cron_events();
$events = self::get_cron_events( $due_now );

if ( is_wp_error( $events ) ) {
return $events;
Expand Down
Loading