Plugin Updates
This commit is contained in:
@@ -467,9 +467,9 @@ class WP_Http {
|
||||
return null !== $attr;
|
||||
}
|
||||
);
|
||||
$cookie_jar[ $value->name ] = new WpOrg\Requests\Cookie( $value->name, $value->value, $attributes, array( 'host-only' => $value->host_only ) );
|
||||
$cookie_jar[ $value->name ] = new WpOrg\Requests\Cookie( (string) $value->name, $value->value, $attributes, array( 'host-only' => $value->host_only ) );
|
||||
} elseif ( is_scalar( $value ) ) {
|
||||
$cookie_jar[ $name ] = new WpOrg\Requests\Cookie( $name, (string) $value );
|
||||
$cookie_jar[ $name ] = new WpOrg\Requests\Cookie( (string) $name, (string) $value );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -611,7 +611,7 @@ class WP_Http {
|
||||
* @param string $url The request URL.
|
||||
* @param string|array $args Optional. Override the defaults.
|
||||
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
|
||||
* A WP_Error instance upon error.
|
||||
* A WP_Error instance upon error. See WP_Http::response() for details.
|
||||
*/
|
||||
public function post( $url, $args = array() ) {
|
||||
$defaults = array( 'method' => 'POST' );
|
||||
@@ -629,7 +629,7 @@ class WP_Http {
|
||||
* @param string $url The request URL.
|
||||
* @param string|array $args Optional. Override the defaults.
|
||||
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
|
||||
* A WP_Error instance upon error.
|
||||
* A WP_Error instance upon error. See WP_Http::response() for details.
|
||||
*/
|
||||
public function get( $url, $args = array() ) {
|
||||
$defaults = array( 'method' => 'GET' );
|
||||
@@ -647,7 +647,7 @@ class WP_Http {
|
||||
* @param string $url The request URL.
|
||||
* @param string|array $args Optional. Override the defaults.
|
||||
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
|
||||
* A WP_Error instance upon error.
|
||||
* A WP_Error instance upon error. See WP_Http::response() for details.
|
||||
*/
|
||||
public function head( $url, $args = array() ) {
|
||||
$defaults = array( 'method' => 'HEAD' );
|
||||
|
||||
Reference in New Issue
Block a user