From 108d70e879cb8fc7e90e2dbabc70d9484644fd2d Mon Sep 17 00:00:00 2001 From: Emili Castells Guasch Date: Fri, 24 Jan 2025 16:43:55 +0100 Subject: [PATCH] Replace encoded ampersand with a decoded one --- modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php b/modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php index 5b03b8ab8..7ea87b743 100644 --- a/modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php +++ b/modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php @@ -669,7 +669,7 @@ public function get_details() : WP_REST_Response { $gateway_settings[ $key ] = array( 'enabled' => 'yes' === $gateway->enabled, - 'title' => $gateway->get_title(), + 'title' => str_replace( '&', '&', $gateway->get_title() ), 'description' => $gateway->get_description(), 'id' => $this->gateways()[ $key ]['id'] ?? $key, 'icon' => $this->gateways()[ $key ]['icon'] ?? '',