From 6e1bc4ac1b1e6578c56493fb29ca07ed4e23a4ca Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Mon, 1 Jun 2026 17:42:43 +0200 Subject: [PATCH] Fix make signup work for guests --- go-form-plugin/go-form-plugin.php | 1 + go-form-plugin/templates/form-shortcode.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index 6d5d556..cd812c2 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -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) diff --git a/go-form-plugin/templates/form-shortcode.php b/go-form-plugin/templates/form-shortcode.php index e4574be..d55271d 100644 --- a/go-form-plugin/templates/form-shortcode.php +++ b/go-form-plugin/templates/form-shortcode.php @@ -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; }