mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-03 01:31:17 +03:00
Show form content when there are form errors
This commit is contained in:
parent
8b4d55782d
commit
8dffcc509b
|
@ -180,7 +180,6 @@ function render_form_manage() {
|
||||||
$results = process_form_manage( $pledge_id, $auth_token );
|
$results = process_form_manage( $pledge_id, $auth_token );
|
||||||
|
|
||||||
if ( is_wp_error( $results ) ) {
|
if ( is_wp_error( $results ) ) {
|
||||||
$can_view_form = false;
|
|
||||||
$errors = $results->get_error_messages();
|
$errors = $results->get_error_messages();
|
||||||
} else {
|
} else {
|
||||||
$messages = array( __( 'Your pledge has been updated.', 'wporg-5ftf' ) );
|
$messages = array( __( 'Your pledge has been updated.', 'wporg-5ftf' ) );
|
||||||
|
|
Loading…
Reference in a new issue