NewPath-Consulting / wap-addon-member-directory

Member Directory block add-on for Wild Apricot Press (WAP)
https://newpathconsulting.com/wap
GNU General Public License v3.0
2 stars 1 forks source link

Uncaught exceptions in API request function #35

Closed nataliebrotherton closed 1 year ago

nataliebrotherton commented 1 year ago

Description

In WaApiClient->makeRequest. Errors currently go uncaught. Since changing the HTTP request method to use wp_remote_get and wp_remote_post the code is still detecting response errors with !$response. Instead, errors now need to be detected with is_wp_error.

Solution