From a8ccd02e7790ff7fd0fa217de677c31ea7001f2c Mon Sep 17 00:00:00 2001 From: dinamiko Date: Wed, 5 Jan 2022 14:31:12 +0100 Subject: [PATCH] Revert vault enabled check in render wrapper --- modules/ppcp-button/src/Assets/SmartButton.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index e7b9bd348..1d96c3ab2 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -177,6 +177,10 @@ class SmartButton implements SmartButtonInterface { */ public function render_wrapper(): bool { + if ( ! $this->can_save_vault_token() && $this->has_subscriptions() ) { + return false; + } + if ( $this->settings->has( 'enabled' ) && $this->settings->get( 'enabled' ) ) { $this->render_button_wrapper_registrar(); $this->render_message_wrapper_registrar();