Merge remote-tracking branch 'remotes/origin/fix/honeypot'

This commit is contained in:
nikitasinelnikov
2020-03-30 13:58:50 +03:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ if ( ! class_exists( 'UM' ) ) {
}
$this->is_filtering = 0;
$this->honeypot = 'request';
$this->honeypot = 'um_request';
// textdomain loading
$this->localize();
+3 -1
View File
@@ -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
}