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
+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
}