mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
Merge pull request #233 from AndroPlus-org/um-spammess
Fix translation of spam bot messages
This commit is contained in:
@@ -95,16 +95,16 @@
|
||||
global $ultimatemember;
|
||||
|
||||
if ( $_POST[ $ultimatemember->honeypot ] != '' )
|
||||
wp_die('Hello, spam bot!');
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
|
||||
$form_timestamp = trim($_POST['timestamp']);
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!') );
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
|
||||
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('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!') );
|
||||
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!','ultimatemember') );
|
||||
|
||||
$user = "";
|
||||
|
||||
@@ -157,17 +157,17 @@
|
||||
global $ultimatemember;
|
||||
|
||||
if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
|
||||
wp_die('Hello, spam bot!');
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
}
|
||||
|
||||
$form_timestamp = trim($_POST['timestamp']);
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!') );
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
|
||||
if ( $live_timestamp - $form_timestamp < 3 && um_get_option('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!') );
|
||||
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!','ultimatemember') );
|
||||
}
|
||||
|
||||
$reset_pass_hash = '';
|
||||
|
||||
+3
-3
@@ -138,7 +138,7 @@ class UM_Form {
|
||||
}
|
||||
|
||||
if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){
|
||||
wp_die('Hello, spam bot!');
|
||||
wp_die('Hello, spam bot!','ultimatemember');
|
||||
}
|
||||
|
||||
if ( !in_array( $this->form_data['mode'], array('login') ) ) {
|
||||
@@ -147,10 +147,10 @@ class UM_Form {
|
||||
$live_timestamp = current_time( 'timestamp' );
|
||||
|
||||
if ( $form_timestamp == '' && um_get_option('enable_timebot') == 1 )
|
||||
wp_die( __('Hello, spam bot!') );
|
||||
wp_die( __('Hello, spam bot!','ultimatemember') );
|
||||
|
||||
if ( !current_user_can('manage_options') && $live_timestamp - $form_timestamp < 6 && um_get_option('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!') );
|
||||
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!','ultimatemember') );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user