Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/password.../includes/views/general
File: view-ppw-expired-cookie.php
<?php
[0] Fix | Delete
$password_cookie_expired = ppw_core_get_setting_type_string( PPW_Constants::COOKIE_EXPIRED );
[1] Fix | Delete
$time = 7;
[2] Fix | Delete
$units = 'days';
[3] Fix | Delete
$one_year = 365;
[4] Fix | Delete
$max = $one_year;
[5] Fix | Delete
if ( ! empty( $password_cookie_expired ) ) {
[6] Fix | Delete
$tmp = explode( ' ', $password_cookie_expired );
[7] Fix | Delete
if ( count( $tmp ) === 2 ) {
[8] Fix | Delete
$time = (int) $tmp[0];
[9] Fix | Delete
$units = $tmp[1];
[10] Fix | Delete
switch ( $units ) {
[11] Fix | Delete
case 'hours':
[12] Fix | Delete
$max = $one_year * 24;
[13] Fix | Delete
break;
[14] Fix | Delete
case 'minutes':
[15] Fix | Delete
$max = $one_year * 24 * 60;
[16] Fix | Delete
break;
[17] Fix | Delete
case 'seconds':
[18] Fix | Delete
$max = $one_year * 24 * 60 * 60;
[19] Fix | Delete
break;
[20] Fix | Delete
default:
[21] Fix | Delete
$max = $one_year;
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
?>
[26] Fix | Delete
<tr>
[27] Fix | Delete
<td class="feature-input"><span class="feature-input"></span></td>
[28] Fix | Delete
<td>
[29] Fix | Delete
<p>
[30] Fix | Delete
<label><?php echo esc_html__( 'Cookie Expiration Time', PPW_Constants::DOMAIN ); ?></label>
[31] Fix | Delete
<?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. ?>
[32] Fix | Delete
</p>
[33] Fix | Delete
<input required value="<?php echo esc_attr( $time ); ?>" class="wpp_time_number" type="number"
[34] Fix | Delete
id="wpp_password_cookie_times" min="1" max="<?php echo esc_attr( $max ); ?>"/>
[35] Fix | Delete
<select id="wpp_password_cookie_units" class="wpp_password_cookie_units">
[36] Fix | Delete
<option value="days" <?php if ( 'days' === $units ) {
[37] Fix | Delete
echo 'selected';
[38] Fix | Delete
} ?>><?php echo esc_html__( 'Days', PPW_Constants::DOMAIN ); ?></option>
[39] Fix | Delete
<option value="hours" <?php if ( 'hours' === $units ) {
[40] Fix | Delete
echo 'selected';
[41] Fix | Delete
} ?> ><?php echo esc_html__( 'Hours', PPW_Constants::DOMAIN ) ?>
[42] Fix | Delete
</option>
[43] Fix | Delete
<option value="minutes" <?php if ( 'minutes' === $units ) {
[44] Fix | Delete
echo 'selected';
[45] Fix | Delete
} ?> ><?php echo esc_html__( 'Minutes', PPW_Constants::DOMAIN ) ?>
[46] Fix | Delete
</option>
[47] Fix | Delete
<option value="seconds" <?php if ( 'seconds' === $units ) {
[48] Fix | Delete
echo 'selected';
[49] Fix | Delete
} ?> ><?php echo esc_html__( 'Seconds', PPW_Constants::DOMAIN ) ?>
[50] Fix | Delete
</option>
[51] Fix | Delete
</select>
[52] Fix | Delete
</td>
[53] Fix | Delete
</tr>
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function