Skip to content

Commit

Permalink
fix: E_DEPRECATED on BNPL empty PMME
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso committed Nov 8, 2024
1 parent 716a80e commit 5340575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-deprecated-message-on-empty-pmme
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

fix: E_DEPRECATED on BNPL empty PMME
2 changes: 1 addition & 1 deletion includes/class-wc-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ public static function load_stripe_bnpl_site_messaging() {
if ( ! $is_subscription ) {
require_once __DIR__ . '/class-wc-payments-payment-method-messaging-element.php';
$stripe_site_messaging = new WC_Payments_Payment_Method_Messaging_Element( self::$account, self::$card_gateway );
echo wp_kses( $stripe_site_messaging->init(), 'post' );
echo wp_kses( $stripe_site_messaging->init() ?? '', 'post' );
}
}

Expand Down

0 comments on commit 5340575

Please sign in to comment.