Skip to content

Commit

Permalink
fix: E_DEPRECATED on BNPL empty PMME (#9689)
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso authored Nov 11, 2024
1 parent 747001c commit c17812e
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 @@ -1888,7 +1888,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 c17812e

Please sign in to comment.