added sslverify set default to false to wp_remote_request
added sslverify set default to false to wp_remote_request

file:a/readme.txt -> file:b/readme.txt
--- a/readme.txt
+++ b/readme.txt
@@ -3,8 +3,8 @@
 Contributors: razvanstanga
 Tags: varnish, purge, cache, caching, optimization, performance, traffic
 Requires at least: 4.0
-Tested up to: 4.8
-Stable tag: 1.6.4
+Tested up to: 4.9
+Stable tag: 1.6.5
 License: GPLv2 or later
 
 Wordpress Varnish Cache 3.x/4.x/5.x integration
@@ -116,6 +116,9 @@
 
 == Changelog ==
 
+= 1.6.5 =
+* added sslverify set default to false to wp_remote_request. thanks @Jules81
+
 = 1.6.4 =
 * fixed php notice
 

--- a/vcaching.php
+++ b/vcaching.php
@@ -3,7 +3,7 @@
 Plugin Name: Varnish Caching
 Plugin URI: http://wordpress.org/extend/plugins/vcaching/
 Description: WordPress Varnish Cache integration.
-Version: 1.6.4
+Version: 1.6.5
 Author: Razvan Stanga
 Author URI: http://git.razvi.ro/
 License: http://www.apache.org/licenses/LICENSE-2.0
@@ -398,7 +398,7 @@
             if (!is_null($this->purgeKey)) {
                 $headers['X-VC-Purge-Key'] = $this->purgeKey;
             }
-            $response = wp_remote_request($purgeme, array('method' => 'PURGE', 'headers' => $headers));
+            $response = wp_remote_request($purgeme, array('method' => 'PURGE', 'headers' => $headers, "sslverify" => false));
             if ($response instanceof WP_Error) {
                 foreach ($response->errors as $error => $errors) {
                     $this->noticeMessage .= '<br />Error ' . $error . '<br />';

comments