summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2017-05-05 17:29:26 -0400
committerYury German <blueknight@gentoo.org>2017-05-05 17:29:26 -0400
commita751233efc6e756083926dfaeaf6eefe718b5f76 (patch)
tree83373c83696d56ab1f0a91615236b2e7b7674477 /plugins/jetpack/class.jetpack-client.php
parentUpdate wordpress-mobile-pack 2.2.10 (diff)
downloadblogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.tar.gz
blogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.tar.bz2
blogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.zip
Update Aksimet v3.3.1, Jetpack v 4.9, Public Post Preview v 2.6.0
Diffstat (limited to 'plugins/jetpack/class.jetpack-client.php')
-rw-r--r--plugins/jetpack/class.jetpack-client.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/jetpack/class.jetpack-client.php b/plugins/jetpack/class.jetpack-client.php
index d5bd23a7..1c5ccbc9 100644
--- a/plugins/jetpack/class.jetpack-client.php
+++ b/plugins/jetpack/class.jetpack-client.php
@@ -299,11 +299,7 @@ class Jetpack_Client {
$_path = preg_replace( '/^\//', '', $path );
// Use GET by default whereas `remote_request` uses POST
- if ( isset( $filtered_args['method'] ) && strtoupper( $filtered_args['method'] === 'POST' ) ) {
- $request_method = 'POST';
- } else {
- $request_method = 'GET';
- }
+ $request_method = ( isset( $filtered_args['method'] ) ) ? $filtered_args['method'] : 'GET';
$validated_args = array_merge( $filtered_args, array(
'url' => sprintf( '%s://%s/rest/v%s/%s', $proto, JETPACK__WPCOM_JSON_API_HOST, $version, $_path ),