mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- Fixed compatibility with jQuery 3.x and 'load' event
This commit is contained in:
@@ -57,7 +57,7 @@ add_action( 'wp_head', 'um_add_form_honeypot_css' );
|
||||
function um_add_form_honeypot_js() {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(window).load(function() {
|
||||
jQuery( window ).on( 'load', function() {
|
||||
jQuery("input[name='<?php echo esc_js( UM()->honeypot ); ?>']").val('');
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user