Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Return when a request is throttled.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Aug 23, 2022
1 parent 5d4c320 commit c8b4473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public static function connect( $path ) {

if ( empty( $token ) || empty( $user_id ) || empty( $domain ) ) {
self::throttle();
return;
}

$api_endpoint = 'https://my.bluehost.com/api/users/'.$user_id.'/usersite/'.$domain;
Expand Down

0 comments on commit c8b4473

Please sign in to comment.