: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$password_cookie_expired = ppw_core_get_setting_type_string( PPW_Constants::COOKIE_EXPIRED );
if ( ! empty( $password_cookie_expired ) ) {
$tmp = explode( ' ', $password_cookie_expired );
if ( count( $tmp ) === 2 ) {
$max = $one_year * 24 * 60;
$max = $one_year * 24 * 60 * 60;
<td class="feature-input"><span class="feature-input"></span></td>
<label><?php echo esc_html__( 'Cookie Expiration Time', PPW_Constants::DOMAIN ); ?></label>
<?php echo _e( 'By default, users won’t have to re-enter passwords until its cookie expires. You can also <a target="_blank" href="https://passwordprotectwp.com/docs/settings/?utm_source=user-website&utm_medium=settings-general-tab&utm_campaign=ppwp-free#cookies">use session cookies</a> to log users out right after they close the browser.', PPW_Constants::DOMAIN ); // phpcs:ignore -- there is no value to escape. ?>
<input required value="<?php echo esc_attr( $time ); ?>" class="wpp_time_number" type="number"
id="wpp_password_cookie_times" min="1" max="<?php echo esc_attr( $max ); ?>"/>
<select id="wpp_password_cookie_units" class="wpp_password_cookie_units">
<option value="days" <?php if ( 'days' === $units ) {
} ?>><?php echo esc_html__( 'Days', PPW_Constants::DOMAIN ); ?></option>
<option value="hours" <?php if ( 'hours' === $units ) {
} ?> ><?php echo esc_html__( 'Hours', PPW_Constants::DOMAIN ) ?>
<option value="minutes" <?php if ( 'minutes' === $units ) {
} ?> ><?php echo esc_html__( 'Minutes', PPW_Constants::DOMAIN ) ?>
<option value="seconds" <?php if ( 'seconds' === $units ) {
} ?> ><?php echo esc_html__( 'Seconds', PPW_Constants::DOMAIN ) ?>