Merge pull request #4208 from rmccue/patch-1
Use correct variable for OAuth parameter check
This commit is contained in:
commit
ecb54bca54
|
@ -108,7 +108,7 @@ class WC_API_Authentication {
|
||||||
// check for required OAuth parameters
|
// check for required OAuth parameters
|
||||||
foreach ( $param_names as $param_name ) {
|
foreach ( $param_names as $param_name ) {
|
||||||
|
|
||||||
if ( empty( $params ) )
|
if ( empty( $params[ $param_name ] ) )
|
||||||
throw new Exception( sprintf( __( '%s parameter is missing', 'woocommerce' ), $param_name ), 404 );
|
throw new Exception( sprintf( __( '%s parameter is missing', 'woocommerce' ), $param_name ), 404 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue