mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 09:33:46 +01:00
Remove by-reference modifiers from arguments in wp_remote_retrieve_*
functions.
Props jesin. Fixes #27687. git-svn-id: https://develop.svn.wordpress.org/trunk@28257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
819ad5babc
commit
fc4dfba1b8
@ -219,7 +219,7 @@ function wp_remote_head($url, $args = array()) {
|
|||||||
* @param array $response HTTP response.
|
* @param array $response HTTP response.
|
||||||
* @return array The headers of the response. Empty array if incorrect parameter given.
|
* @return array The headers of the response. Empty array if incorrect parameter given.
|
||||||
*/
|
*/
|
||||||
function wp_remote_retrieve_headers(&$response) {
|
function wp_remote_retrieve_headers( $response ) {
|
||||||
if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
|
if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
|
||||||
return array();
|
return array();
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ function wp_remote_retrieve_headers(&$response) {
|
|||||||
* @param string $header Header name to retrieve value from.
|
* @param string $header Header name to retrieve value from.
|
||||||
* @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.
|
* @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.
|
||||||
*/
|
*/
|
||||||
function wp_remote_retrieve_header(&$response, $header) {
|
function wp_remote_retrieve_header( $response, $header ) {
|
||||||
if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
|
if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ function wp_remote_retrieve_header(&$response, $header) {
|
|||||||
* @param array $response HTTP response.
|
* @param array $response HTTP response.
|
||||||
* @return string the response code. Empty string on incorrect parameter given.
|
* @return string the response code. Empty string on incorrect parameter given.
|
||||||
*/
|
*/
|
||||||
function wp_remote_retrieve_response_code(&$response) {
|
function wp_remote_retrieve_response_code( $response ) {
|
||||||
if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
|
if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ function wp_remote_retrieve_response_code(&$response) {
|
|||||||
* @param array $response HTTP response.
|
* @param array $response HTTP response.
|
||||||
* @return string The response message. Empty string on incorrect parameter given.
|
* @return string The response message. Empty string on incorrect parameter given.
|
||||||
*/
|
*/
|
||||||
function wp_remote_retrieve_response_message(&$response) {
|
function wp_remote_retrieve_response_message( $response ) {
|
||||||
if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
|
if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ function wp_remote_retrieve_response_message(&$response) {
|
|||||||
* @param array $response HTTP response.
|
* @param array $response HTTP response.
|
||||||
* @return string The body of the response. Empty string if no body or incorrect parameter given.
|
* @return string The body of the response. Empty string if no body or incorrect parameter given.
|
||||||
*/
|
*/
|
||||||
function wp_remote_retrieve_body(&$response) {
|
function wp_remote_retrieve_body( $response ) {
|
||||||
if ( is_wp_error($response) || ! isset($response['body']) )
|
if ( is_wp_error($response) || ! isset($response['body']) )
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user