mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Fix conditional
This commit is contained in:
parent
dae8026335
commit
27c7ad01b9
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue