mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix the 'Trying to access array offset on value of type null' warning on the Block Cart and Checkout when PayLater messaging is active
This commit is contained in:
parent
530006fbcb
commit
c64b94badd
1 changed files with 1 additions and 7 deletions
|
@ -119,13 +119,7 @@ class PayLaterWCBlocksRenderer {
|
|||
$processor->set_attribute( 'data-pp-placement', esc_attr( $this->placement ) );
|
||||
}
|
||||
|
||||
$updated_html = $processor->get_updated_html();
|
||||
|
||||
return sprintf(
|
||||
'<div %1$s>%2$s</div>',
|
||||
wp_kses_data( get_block_wrapper_attributes() ),
|
||||
$updated_html
|
||||
);
|
||||
return $processor->get_updated_html();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue