updated plugin W3 Total Cache
version 2.6.1
This commit is contained in:
@ -111,6 +111,11 @@ class Extension_CloudFlare_Api {
|
||||
|
||||
|
||||
public function zone_setting_set( $name, $value ) {
|
||||
// Convert numeric values to the integer type.
|
||||
if ( is_numeric( $value ) ) {
|
||||
$value = intval( $value );
|
||||
}
|
||||
|
||||
return $this->_wp_remote_request( 'PATCH',
|
||||
self::$_root_uri . '/zones/' . $this->_zone_id . '/settings/' . $name,
|
||||
json_encode( array( 'value' => $value ) ) );
|
||||
@ -367,4 +372,4 @@ class Extension_CloudFlare_Api {
|
||||
|
||||
return $headers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user