Merge pull request #2188 from woocommerce/PCP-2961-data-partner-attribution-id-missing-on-block-cart-checkout-pages

Set the 'Woo_PPCP' as a default value for `data-partner-attribution-id` (2961)
This commit is contained in:
Emili Castells 2024-05-09 10:39:31 +02:00 committed by GitHub
commit 0bbb0c6bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1506,7 +1506,7 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
private function bn_code_for_context( string $context ): string {
$codes = $this->bn_codes();
return ( isset( $codes[ $context ] ) ) ? $codes[ $context ] : '';
return ( isset( $codes[ $context ] ) ) ? $codes[ $context ] : 'Woo_PPCP';
}
/**