auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -92,6 +92,7 @@ class ActionMigrator {
|
||||
|
||||
$test_action = $this->source->fetch_action( $source_action_id );
|
||||
if ( ! is_a( $test_action, 'ActionScheduler_NullAction' ) ) {
|
||||
// translators: %s is an action ID.
|
||||
throw new \RuntimeException( sprintf( __( 'Unable to remove source migrated action %s', 'woocommerce' ), $source_action_id ) );
|
||||
}
|
||||
do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination );
|
||||
|
||||
@@ -41,6 +41,7 @@ class ActionScheduler_DBStoreMigrator extends ActionScheduler_DBStore {
|
||||
|
||||
return $action_id;
|
||||
} catch ( \Exception $e ) {
|
||||
// translators: %s is an error message.
|
||||
throw new \RuntimeException( sprintf( __( 'Error saving action: %s', 'woocommerce' ), $e->getMessage() ), 0 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user