- deprecated time checking spam bot;

This commit is contained in:
nikitozzzzzzz
2018-05-15 15:41:28 +03:00
parent 0ed407e0bc
commit e1bf14e9e0
3 changed files with 0 additions and 33 deletions
-13
View File
@@ -331,19 +331,6 @@ if ( ! class_exists( 'um\core\Form' ) ) {
wp_die( 'Hello, spam bot!', 'ultimate-member' );
}
if ( ! in_array( $this->form_data['mode'], array( 'login' ) ) ) {
$form_timestamp = trim($_POST['timestamp']);
$live_timestamp = current_time( 'timestamp' );
if ( $form_timestamp == '' && UM()->options()->get( 'enable_timebot' ) == 1 )
wp_die( __('Hello, spam bot!','ultimate-member') );
if ( !current_user_can('manage_options') && $live_timestamp - $form_timestamp < 6 && UM()->options()->get( 'enable_timebot' ) == 1 )
wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!','ultimate-member') );
}
/**
* UM hook
*