Show form content when there are form errors

This commit is contained in:
Kelly Dwan 2019-11-21 18:50:36 -05:00
parent 8b4d55782d
commit 8dffcc509b
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -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' ) );
}