Be more friendly when API requests fail
|Reported by:||nacin||Owned by:||ryan|
When plugins_api() fails, you see "An unknown error occurred during the API request." if the response was invalid, and "An Unexpected HTTP Error occurred during the API request." if the HTTP request failed.
That is not helpful. We should improve this string to let people know that it is likely a temporary issue with WordPress.org, and that if they are still seeing problems, they check the support forums.
If the HTTP request fails, it probably is not an issue with WordPress.org, so we should just point them to the support forums.
Same goes for themes_api(), I imagine.