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:
Daniel Dudzic 2024-04-30 23:46:05 +02:00
parent 530006fbcb
commit c64b94badd
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -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();
}
}
}