From 129615dc7b6de9171a6bc7b7fd7b1b99208fe04a Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Sat, 20 Aug 2016 23:03:04 +0800 Subject: [PATCH] Fix reset password validation --- core/um-actions-password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-password.php b/core/um-actions-password.php index 66c289d1..0be0a56c 100644 --- a/core/um-actions-password.php +++ b/core/um-actions-password.php @@ -99,7 +99,7 @@ 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!') ); - if ( strlen(trim( $_POST['username_b'] ) ) == 0 ) { + if ( empty( trim( $_POST['username_b'] ) ) ) { $ultimatemember->form->add_error('username_b', __('Please provide your username or email','ultimatemember') ); }