rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -0,0 +1,16 @@
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?>
<p><?php esc_html_e('If you are a WordPress user with administrative privileges on this site please enter your email in the box below and click &quot;Send&quot;. You will then receive an email that helps you regain access.', 'wordfence'); ?></p>
<form method="POST" id="unlock-form" action="#">
<?php require_once(ABSPATH . 'wp-includes/pluggable.php'); ?>
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('wf-form'); ?>">
<input type="text" size="50" name="email" id="unlock-email" value="" maxlength="255" placeholder="email@example.com">&nbsp;&nbsp;<input type="submit" class="wf-btn wf-btn-default" id="unlock-submit" name="s" value="<?php esc_attr_e('Send Unlock Email', 'wordfence'); ?>" disabled>
</form>
<script type="application/javascript">
(function() {
var textfield = document.getElementById('unlock-email');
textfield.addEventListener('focus', function() {
document.getElementById('unlock-form').action = "<?php echo esc_js(wfUtils::getSiteBaseURL()); ?>" + "?_wfsf=unlockEmail";
document.getElementById('unlock-submit').disabled = false;
});
})();
</script>