Merge pull request #17800 from shivapoudel/tweak/api-request

Tweak - Fix IPN validation for PayPal as its notify URL has different case
This commit is contained in:
Mike Jolley 2017-11-20 11:31:17 +00:00 committed by GitHub
commit bfdd5e2e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class WC_API extends WC_Legacy_API {
wc_nocache_headers();
// Clean the API request.
$api_request = $wp->query_vars['wc-api'];
$api_request = strtolower( wc_clean( $wp->query_vars['wc-api'] ) );
// Trigger generic action before request hook.
do_action( 'woocommerce_api_request', $api_request );