From 27c7ad01b9f85658e483855a9a843135b560f53e Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 26 Nov 2019 09:54:52 -0500 Subject: [PATCH] Fix conditional --- plugins/wporg-5ftf/includes/pledge-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index f273f38..1cc44df 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -213,7 +213,7 @@ function process_form_manage( $pledge_id, $auth_token ) { */ $can_view_form = Auth\can_manage_pledge( $pledge_id, $auth_token ); - if ( ! $has_valid_nonce || ! $can_view_form ) { + if ( ! $has_valid_nonce || is_wp_error( $can_view_form ) ) { return new WP_Error( 'invalid_token', sprintf(