handle wp error on remote get
-
version 0.1.5.1
line 514 — in reverse_geocode function $result = wp_remote_get($url);
If the $result is an error, the json_decode on the next line fails and throws a fatal error.Looks like you need a is_wp_error($result) handler in there.
- The topic ‘handle wp error on remote get’ is closed to new replies.