Skip to content
Open
Changes from all commits
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: 2 additions & 0 deletions classes/abstracts/ActionScheduler_Abstract_QueueRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function ( $type, $message ) {
},
E_USER_ERROR | E_RECOVERABLE_ERROR
);
add_action( 'shutdown', 'restore_error_handler', -10, 0 );

/*
* The nested try/catch structure is required because we potentially need to convert thrown errors into
Expand Down Expand Up @@ -112,6 +113,7 @@ function ( $type, $message ) {
$this->handle_action_error( $action_id, $e, $context, $valid_action );
} finally {
restore_error_handler();
remove_action( 'shutdown', 'restore_error_handler', -10 );
}

if ( isset( $action ) && is_a( $action, 'ActionScheduler_Action' ) && $action->get_schedule()->is_recurring() ) {
Expand Down