mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Update Ultimate Member plugin honeypot CSS and JS
Removed wp_add_inline_script/style and used `um_request` as default honeypot key in um-styles.css and um-scripts.js.
This commit is contained in:
@@ -698,3 +698,12 @@ jQuery(document).ready(function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Makes the honeypot.
|
||||
jQuery( window ).on( 'load', function() {
|
||||
let $honeypotField = jQuery('input[name="um_request"]');
|
||||
if ( $honeypotField.length ) {
|
||||
$honeypotField.val('');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user