This commit is contained in:
Pedro Silva 2024-03-25 16:08:49 +00:00
parent fdca5c56a5
commit eec344f35d
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -1339,11 +1339,17 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
$disable_funding[] = 'paylater';
}
// Make sure paypal is not sent in disable funding.
$disable_funding = array_filter(
$disable_funding,
function( $value ) {
return $value !== 'paypal';
/**
* Make sure paypal is not sent in disable funding.
*
* @param string $funding_source The funding_source.
*
* @psalm-suppress MissingClosureParamType
*/
function( $funding_source ) {
return $funding_source !== 'paypal';
}
);