From 8dffcc509b8c36ea76081ca911cd86b2a12b73eb Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Thu, 21 Nov 2019 18:50:36 -0500 Subject: [PATCH] Show form content when there are form errors --- plugins/wporg-5ftf/includes/pledge-form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index 1906edd..92b922c 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -180,8 +180,7 @@ function render_form_manage() { $results = process_form_manage( $pledge_id, $auth_token ); if ( is_wp_error( $results ) ) { - $can_view_form = false; - $errors = $results->get_error_messages(); + $errors = $results->get_error_messages(); } else { $messages = array( __( 'Your pledge has been updated.', 'wporg-5ftf' ) ); }