Fix make signup work for guests
This commit is contained in:
@@ -233,6 +233,7 @@ function go_form_handle_submission()
|
||||
exit;
|
||||
}
|
||||
add_action('admin_post_go_form_handle_submission', 'go_form_handle_submission');
|
||||
Pleadd_action('admin_post_nopriv_go_form_handle_submission', 'go_form_handle_submission');
|
||||
|
||||
// ========== Shortcode ==========
|
||||
function go_form_shortcode($atts)
|
||||
|
||||
@@ -225,11 +225,11 @@
|
||||
const lastName = document.getElementById('last_name').value.trim();
|
||||
|
||||
if (firstName.length < 2) {
|
||||
alert('Please enter at least 2 characters in first or last name');
|
||||
alert('Please enter at least 2 characters in first and last name');
|
||||
return;
|
||||
}
|
||||
if (lastName.length < 2) {
|
||||
alert('Please enter at least 2 characters in first or last name');
|
||||
alert('Please enter at least 2 characters in first and last name');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user