From d2f3fbe73a10d54644d0300d5e812874f2ba8347 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Wed, 20 Nov 2019 10:51:20 -0500 Subject: [PATCH] Import correct namespace, use correct variable --- plugins/wporg-5ftf/includes/endpoints.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wporg-5ftf/includes/endpoints.php b/plugins/wporg-5ftf/includes/endpoints.php index 0a49413..70b4c70 100644 --- a/plugins/wporg-5ftf/includes/endpoints.php +++ b/plugins/wporg-5ftf/includes/endpoints.php @@ -5,7 +5,7 @@ namespace WordPressDotOrg\FiveForTheFuture\Endpoints; -use WordPressDotOrg\FiveForTheFuture\{ Auth, Contributor, Email }; +use WordPressDotOrg\FiveForTheFuture\{ Auth, Contributor, Email, PledgeForm }; add_action( 'wp_ajax_manage-contributors', __NAMESPACE__ . '\manage_contributors_handler' ); @@ -20,7 +20,7 @@ function manage_contributors_handler() { $pledge_id = filter_input( INPUT_POST, 'pledge_id', FILTER_VALIDATE_INT ); $contributor_id = filter_input( INPUT_POST, 'contributor_id', FILTER_VALIDATE_INT ); $token = filter_input( INPUT_POST, '_token' ); - $authenticated = Auth\can_manage_pledge( $pledge_id, $auth_token ); + $authenticated = Auth\can_manage_pledge( $pledge_id, $token ); if ( is_wp_error( $authenticated ) ) { wp_die( wp_json_encode( [