Merge pull request #4208 from rmccue/patch-1

Use correct variable for OAuth parameter check
This commit is contained in:
Mike Jolley 2013-11-26 08:20:44 -08:00
commit ecb54bca54
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class WC_API_Authentication {
// check for required OAuth parameters
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 );
}