← All changes
|
vendor/team-updraft/lib-central/central/modules/analytics.php
+2
-2
3.7.1
→
4.7.0
View file →
| @@ -255,9 +255,9 @@ | ||
| 255 | 255 | ); |
| 256 | 256 | |
| 257 | 257 | $response = wp_remote_get($this->auth_endpoint.'?user_id='.$user_id.'&code=ud_googleanalytics_code', $args); |
| 258 | 258 | if (is_wp_error($response)) { |
| 259 | - throw new Exception($response->get_error_message()); | |
| 259 | + throw new Exception($response->get_error_message()); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- The escaping should be happening when the exception is printed | |
| 260 | 260 | } else { |
| 261 | 261 | if (is_array($response)) { |
| 262 | 262 | |
| 263 | 263 | $body = json_decode($response['body'], true); |
| @@ -298,9 +298,9 @@ | ||
| 298 | 298 | private function _token_valid($token) { |
| 299 | 299 | |
| 300 | 300 | $response = wp_remote_get($this->token_info_endpoint.'?access_token='.$token); |
| 301 | 301 | if (is_wp_error($response)) { |
| 302 | - throw new Exception($response->get_error_message()); | |
| 302 | + throw new Exception($response->get_error_message()); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- The escaping should be happening when the exception is printed | |
| 303 | 303 | } else { |
| 304 | 304 | if (is_array($response)) { |
| 305 | 305 | $response = json_decode($response['body'], true); |
| 306 | 306 | if (!empty($response)) { |