Skip to content

Commit ddf9ab0

Browse files
committed
Remove API enabled check from auth endpoint
1 parent ebcdd5f commit ddf9ab0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

includes/class-wc-auth.php

-4
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,6 @@ protected function auth_endpoint( $route ) {
319319
$consumer_data = array();
320320

321321
try {
322-
if ( 'yes' !== get_option( 'woocommerce_api_enabled' ) ) {
323-
throw new Exception( __( 'API disabled!', 'woocommerce' ) );
324-
}
325-
326322
$route = strtolower( wc_clean( $route ) );
327323
$this->make_validation();
328324

0 commit comments

Comments
 (0)