← All changes
|
src/Framework/Http/ConnectServer/Client/ConnectClient.php
+6
-5
2.30.0
→
4.16.9
View file →
| @@ -113,14 +113,15 @@ | ||
| 113 | 113 | private function validateWpErrorInResponse($response) |
| 114 | 114 | { |
| 115 | 115 | if (is_wp_error($response)) { |
| 116 | 116 | throw new RequestException( |
| 117 | - esc_html__( | |
| 118 | - sprintf( | |
| 117 | + sprintf( | |
| 118 | + esc_html__( | |
| 119 | 119 | 'The request to the %1$s failed. Error: %2$s', |
| 120 | - $this->apiUrl, | |
| 121 | - $response->get_error_message() | |
| 122 | - ) | |
| 120 | + 'give' | |
| 121 | + ), | |
| 122 | + $this->apiUrl, | |
| 123 | + $response->get_error_message() | |
| 123 | 124 | ) |
| 124 | 125 | ); |
| 125 | 126 | } |
| 126 | 127 | } |