Merge pull request #20499 from woocommerce/fix/20496

Remove API enabled check from auth endpoint
This commit is contained in:
Claudio Sanches 2018-06-12 11:22:54 -03:00 committed by GitHub
commit 5f37fe110a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -319,10 +319,6 @@ class WC_Auth {
$consumer_data = array();
try {
if ( 'yes' !== get_option( 'woocommerce_api_enabled' ) ) {
throw new Exception( __( 'API disabled!', 'woocommerce' ) );
}
$route = strtolower( wc_clean( $route ) );
$this->make_validation();