updated plugin W3 Total Cache version 2.6.1

This commit is contained in:
2023-12-08 23:23:32 +00:00
committed by Gitium
parent fa428d9da9
commit 33d18af972
82 changed files with 5759 additions and 1701 deletions

View File

@ -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;
}
}
}