Fix make signup work for guests
This commit is contained in:
@@ -233,6 +233,7 @@ function go_form_handle_submission()
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
add_action('admin_post_go_form_handle_submission', 'go_form_handle_submission');
|
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 ==========
|
// ========== Shortcode ==========
|
||||||
function go_form_shortcode($atts)
|
function go_form_shortcode($atts)
|
||||||
|
|||||||
@@ -225,11 +225,11 @@
|
|||||||
const lastName = document.getElementById('last_name').value.trim();
|
const lastName = document.getElementById('last_name').value.trim();
|
||||||
|
|
||||||
if (firstName.length < 2) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (lastName.length < 2) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user