Better error response when fetching attachments. Props DD32. see #7944

git-svn-id: https://develop.svn.wordpress.org/trunk@9327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-24 18:22:43 +00:00
parent 979442ccd6
commit 9e467a6850
2 changed files with 9 additions and 1 deletions

View File

@@ -1051,6 +1051,8 @@ function wp_get_http( $url, $file_path = false, $deprecated = false ) {
return false;
$headers = wp_remote_retrieve_headers( $response );
$headers['response'] = $response['response']['code'];
if ( false == $file_path )
return $headers;