Fix conditional

This commit is contained in:
Kelly Dwan 2019-11-26 09:54:52 -05:00
parent dae8026335
commit 27c7ad01b9
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -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(