mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge remote-tracking branch 'remotes/origin/fix/honeypot'
This commit is contained in:
@@ -193,7 +193,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
$this->is_filtering = 0;
|
||||
$this->honeypot = 'request';
|
||||
$this->honeypot = 'um_request';
|
||||
|
||||
// textdomain loading
|
||||
$this->localize();
|
||||
|
||||
@@ -57,7 +57,9 @@ add_action( 'wp_head', 'um_add_form_honeypot_css' );
|
||||
function um_add_form_honeypot_js() {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery( '#<?php echo esc_js( UM()->honeypot ); ?>' ).val( '' );
|
||||
jQuery(window).load(function() {
|
||||
jQuery("input[name='<?php echo esc_js( UM()->honeypot ); ?>']").val('');
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user