Check for string instead of boolean

This commit is contained in:
Emili Castells Guasch 2023-08-30 16:58:30 +02:00
parent 2571d31ad8
commit c8e1b3cd7f

View file

@ -121,7 +121,7 @@ class BillingAgreementsEndpoint {
*/
public function reference_transaction_enabled(): bool {
try {
if ( get_transient( 'ppcp_reference_transaction_enabled' ) === true ) {
if ( get_transient( 'ppcp_reference_transaction_enabled' ) === '1' ) {
return true;
}