Skip to content

Commit 6ed191c

Browse files
swissspidyCopilot
andauthored
Update src/Cron_Event_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 873f540 commit 6ed191c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Cron_Event_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ protected static function get_hook_actions( $hook_name ) {
640640
// Iterate through all priorities
641641
foreach ( $callbacks as $priority => $priority_callbacks ) {
642642
foreach ( $priority_callbacks as $callback_info ) {
643+
if ( ! isset( $callback_info['function'] ) ) {
644+
continue;
645+
}
643646
$callback = $callback_info['function'];
644647
$actions[] = self::format_callback( $callback );
645648
}

0 commit comments

Comments
 (0)