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/wordfenc.../modules/login-se.../views/manage
File: grace-period.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* @var \WP_User $user The user being edited. Required.
[3] Fix | Delete
* @var bool $inGracePeriod
[4] Fix | Delete
* @var bool $lockedOut
[5] Fix | Delete
* @var int $requiredAt
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
$ownAccount = false;
[9] Fix | Delete
$ownUser = wp_get_current_user();
[10] Fix | Delete
if ($ownUser->ID == $user->ID) {
[11] Fix | Delete
$ownAccount = true;
[12] Fix | Delete
}
[13] Fix | Delete
$defaultGracePeriod = \WordfenceLS\Controller_Settings::shared()->get_user_2fa_grace_period();
[14] Fix | Delete
$hasGracePeriod = $defaultGracePeriod > 0;
[15] Fix | Delete
?>
[16] Fix | Delete
<div class="wfls-block wfls-always-active wfls-flex-item-full-width">
[17] Fix | Delete
<div class="wfls-block-header wfls-block-header-border-bottom">
[18] Fix | Delete
<div class="wfls-block-header-content">
[19] Fix | Delete
<div class="wfls-block-title">
[20] Fix | Delete
<strong><?php echo $gracePeriod ? esc_html__('Grace Period', 'wordfence') : esc_html__('Locked Out', 'wordfence') ?></strong>
[21] Fix | Delete
</div>
[22] Fix | Delete
</div>
[23] Fix | Delete
</div>
[24] Fix | Delete
<div class="wfls-block-content">
[25] Fix | Delete
<?php if ($gracePeriod): ?>
[26] Fix | Delete
<p><?php
[27] Fix | Delete
$requiredDateFormatted = \WordfenceLS\Controller_Time::format_local_time('F j, Y g:i A', $requiredAt);
[28] Fix | Delete
echo $ownAccount ?
[29] Fix | Delete
sprintf(wp_kses(__('Two-factor authentication will be required for your account beginning <strong>%s</strong>', 'wordfence'), array('strong'=>array())), $requiredDateFormatted) :
[30] Fix | Delete
sprintf(wp_kses(__('Two-factor authentication will be required for user <strong>%s</strong> beginning <strong>%s</strong>.', 'wordfence'), array('strong'=>array())), esc_html($user->user_login), $requiredDateFormatted)
[31] Fix | Delete
?></p>
[32] Fix | Delete
<?php if (\WordfenceLS\Controller_Users::shared()->has_revokable_grace_period($user)): ?>
[33] Fix | Delete
<?php echo \WordfenceLS\Model_View::create(
[34] Fix | Delete
'common/revoke-grace-period',
[35] Fix | Delete
array(
[36] Fix | Delete
'user' => $user
[37] Fix | Delete
))->render() ?>
[38] Fix | Delete
<?php endif ?>
[39] Fix | Delete
<?php else: ?>
[40] Fix | Delete
<p>
[41] Fix | Delete
<?php echo $ownAccount ?
[42] Fix | Delete
esc_html__('Two-factor authentication is required for your account, but has not been configured.', 'wordfence') :
[43] Fix | Delete
esc_html__('Two-factor authentication is required for this account, but has not been configured.', 'wordfence') ?>
[44] Fix | Delete
</p>
[45] Fix | Delete
<?php echo \WordfenceLS\Model_View::create(
[46] Fix | Delete
'common/reset-grace-period',
[47] Fix | Delete
array(
[48] Fix | Delete
'user' => $user,
[49] Fix | Delete
'gracePeriod' => $gracePeriod,
[50] Fix | Delete
'defaultGracePeriod' => $defaultGracePeriod
[51] Fix | Delete
))->render() ?>
[52] Fix | Delete
<?php endif ?>
[53] Fix | Delete
</div>
[54] Fix | Delete
</div>
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function