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:
Mykyta Synelnikov
2025-02-19 12:36:26 +02:00
parent a0d19b7ab6
commit 959bd82cdc
5 changed files with 16 additions and 15 deletions
+5
View File
@@ -1152,3 +1152,8 @@ small.um-max-filesize span{
float: none;
height: auto;
}
/*Makes the honeypot invisible.*/
.um_request_name {
display: none !important;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+9
View File
@@ -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('');
}
});
+1 -1
View File
File diff suppressed because one or more lines are too long