← All changes
|
includes/integrations/class-google-pagespeed-client.php
+0
-6
trunk
→
2.11.0
View file →
| @@ -268,16 +268,10 @@ | ||
| 268 | 268 | 'test_url' => $test_url, |
| 269 | 269 | 'performance_score' => $performance_score |
| 270 | 270 | ]; |
| 271 | 271 | } catch (\Exception $e) { |
| 272 | - // `message` as well as `error`: the success branch above reports | |
| 273 | - // its outcome as `message`, and every consumer reads that key, so | |
| 274 | - // a failure that only set `error` was reported to the admin as an | |
| 275 | - // error with no reason at all (#852). `error` is kept for any | |
| 276 | - // caller that already reads it. | |
| 277 | 272 | return [ |
| 278 | 273 | 'success' => false, |
| 279 | - 'message' => $e->getMessage(), | |
| 280 | 274 | 'error' => $e->getMessage() |
| 281 | 275 | ]; |
| 282 | 276 | } |
| 283 | 277 | } |