PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← 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)) {