- removed ID's duplicates if there is more than 1 form at same screen;

This commit is contained in:
nikitozzzzzzz
2017-12-11 11:52:14 +02:00
parent e686d3c613
commit 8ae0c021b8
+3 -3
View File
@@ -19,13 +19,13 @@
function um_add_security_checks($args){
if ( is_admin() ) return;
echo '<input type="hidden" name="timestamp" id="timestamp" value="'. current_time( 'timestamp' ) .'" />';
echo '<input type="hidden" name="timestamp" class="um_timestamp" value="'. current_time( 'timestamp' ) .'" />';
?>
<p class="<?php echo UM()->honeypot; ?>_name">
<label for="<?php echo UM()->honeypot; ?>"><?php _e( 'Only fill in if you are not human' ); ?></label>
<input type="text" name="<?php echo UM()->honeypot; ?>" id="<?php echo UM()->honeypot; ?>" class="input" value="" size="25" autocomplete="off" />
<label for="<?php echo UM()->honeypot . '_' . $args['form_id']; ?>"><?php _e( 'Only fill in if you are not human' ); ?></label>
<input type="text" name="<?php echo UM()->honeypot; ?>" id="<?php echo UM()->honeypot . '_' . $args['form_id']; ?>" class="input" value="" size="25" autocomplete="off" />
</p>
<?php