From 5389d07729e11e6b63d1d54a4a64b46fa1626294 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:19:44 +0100 Subject: [PATCH] Fix "All output should be run through an escaping function". --- src/RefundsManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RefundsManager.php b/src/RefundsManager.php index 32b2358..ccb5b48 100644 --- a/src/RefundsManager.php +++ b/src/RefundsManager.php @@ -122,7 +122,7 @@ private function process_refund( EDD_Payment $edd_payment, Payment $payment ) { $gateway = $payment->get_gateway(); if ( null === $gateway ) { - throw new Exception( __( 'Unable to process refund because gateway does not exist.', 'pronamic_ideal' ) ); + throw new \Exception( \esc_html__( 'Unable to process refund because gateway does not exist.', 'pronamic_ideal' ) ); } // Transaction ID.