← All changes
|
includes/integrations/class-google-analytics-client.php
+0
-6
trunk
→
2.11.0
View file →
| @@ -84,16 +84,10 @@ | ||
| 84 | 84 | 'dimensions_count' => count($result['dimensions'] ?? []), |
| 85 | 85 | 'metrics_count' => count($result['metrics'] ?? []) |
| 86 | 86 | ]; |
| 87 | 87 | } catch (\Exception $e) { |
| 88 | - // `message` as well as `error`: the success branch above reports | |
| 89 | - // its outcome as `message`, and every consumer reads that key, so | |
| 90 | - // a failure that only set `error` was reported to the admin as an | |
| 91 | - // error with no reason at all (#852). `error` is kept for any | |
| 92 | - // caller that already reads it. | |
| 93 | 88 | return [ |
| 94 | 89 | 'success' => false, |
| 95 | - 'message' => $e->getMessage(), | |
| 96 | 90 | 'error' => $e->getMessage() |
| 97 | 91 | ]; |
| 98 | 92 | } |
| 99 | 93 | } |