: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php if( ! $licenses ): ?>
<?php echo sprintf( esc_html__( 'To activate licenses for Ninja Forms extensions you must first %sinstall and activate%s the chosen extension. License settings will then appear below.', 'ninja-forms' ), '<a target="_blank" href="https://ninjaforms.com/docs/installation/">', '</a>' ); ?>
<table class="form-table">
<?php foreach( $licenses as $license ): ?>
<?php echo $license[ 'name' ]; ?>
<br /><small>v<?php echo $license[ 'version' ]; ?></small>
<form action="" method="POST">
<input type="hidden" name="ninja_forms_license[name]" value="<?php echo $license[ 'id' ]; ?>">
<input type="text" class="widefat" name="ninja_forms_license[key]" value="<?php echo $license[ 'license' ];?>">
<?php if( $license[ 'error' ] ): ?>
<?php echo $license[ 'error' ]; ?>
<?php if( ! $license[ 'is_valid' ] ): ?>
<button type="submit" class="button button-primary" name="ninja_forms_license[action]" value="activate"><?php esc_html_e( 'Activate', 'ninja-forms' ); ?></button>
<button type="submit" class="button button-secondary" name="ninja_forms_license[action]" value="deactivate"><?php esc_html_e( 'De-activate', 'ninja-forms' ); ?></button>