Skip to content

Commit

Permalink
Fix API error logs for non-blocking requests
Browse files Browse the repository at this point in the history
  • Loading branch information
uglyrobot committed Mar 20, 2023
1 parent 0f827b9 commit e5e0b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-infinite-uploads-api-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function call( $remote_path, $data = [], $method = 'GET', $options = [] )
}

if ( 200 != wp_remote_retrieve_response_code( $response ) ) {
if ( empty( $options['blocking'] ) ) {
if ( ! isset( $options['blocking'] ) || false !== $options['blocking'] ) {
$this->parse_api_error( $response );
}

Expand Down

0 comments on commit e5e0b43

Please sign in to comment.