From 380b05deb6a412dad1e7d47b9df5d3c5318a570d Mon Sep 17 00:00:00 2001 From: David Remer Date: Thu, 30 Apr 2020 16:49:44 +0300 Subject: [PATCH] fix ids of dcc labels --- .../ppcp-button/src/Assets/SmartButton.php | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/modules.local/ppcp-button/src/Assets/SmartButton.php b/modules.local/ppcp-button/src/Assets/SmartButton.php index 856efc383..30815f6f6 100644 --- a/modules.local/ppcp-button/src/Assets/SmartButton.php +++ b/modules.local/ppcp-button/src/Assets/SmartButton.php @@ -44,25 +44,19 @@ class SmartButton implements SmartButtonInterface }; $dccRenderer = static function ($id = null, $class = null) { - static $times; if (!$id) { $id = 'ppcp-hosted-fields'; } - if (! $times) { - $times = 0; - } - $times++; printf( - '
- -
- -
- -
- + ' + +
+ +
+ +
+
', - $times, esc_attr($id), esc_attr($class), esc_html__('Card number', 'woocommerce-paypal-commerce-gateway'),