: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* WPForms What's New modal template.
* @var array $header Header data.
* @var array $footer Footer data.
* @var array $blocks Blocks data.
* @var array $license License type.
if ( ! defined( 'ABSPATH' ) ) {
<script type="text/html" id="tmpl-wpforms-splash-modal-content">
<div id="wpforms-splash-modal">
//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render( 'admin/splash/header', $header, true );
foreach ( $blocks as $section ) {
//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render( 'admin/splash/section', $section, true );
if ( $license === 'lite' ) {
//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render( 'admin/splash/footer', $footer, true );