### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
|
| 766 | 766 | // If location is found, then assume redirect and redirect to location. |
| 767 | 767 | if ( 'HEAD' != $r['method'] && isset($arrHeaders['headers']['location']) ) { |
| 768 | 768 | if ( $r['redirection']-- > 0 ) { |
| 769 | | return $this->request($arrHeaders['headers']['location'], $r); |
| | 769 | $location = (array) $arrHeaders['headers']['location']; |
| | 770 | return $this->request($location[0], $r); |
| 770 | 771 | } else { |
| 771 | 772 | return new WP_Error('http_request_failed', __('Too many redirects.')); |
| 772 | 773 | } |