mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Show form content when there are form errors
This commit is contained in:
parent
8b4d55782d
commit
8dffcc509b
|
@ -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' ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue