Allow oAuth1.0a under SSL

Closes #20042
This commit is contained in:
Claudio Sanches 2018-05-15 23:51:59 +01:00
parent 6c1234668a
commit dbec84e0a9
1 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,11 @@ class WC_REST_Authentication {
}
if ( is_ssl() ) {
return $this->perform_basic_authentication();
$user_id = $this->perform_basic_authentication();
}
if ( $user_id ) {
return $user_id;
}
return $this->perform_oauth_authentication();