Cloudflare - Version 4.8.1

Version Description

  • 2022-03-18 =

  • Loosen domain check for cache purge calls to allow subdomains

Download this release

Release Info

Developer manatarms
Plugin Icon 128x128 Cloudflare
Version 4.8.1
Comparing to
See all releases

Code changes from version 4.8.0 to 4.8.1

cloudflare.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
- Version: 4.8.0
7
  Requires PHP: 7.2
8
  Author: Cloudflare, Inc.
9
  License: BSD-3-Clause
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
+ Version: 4.8.1
7
  Requires PHP: 7.2
8
  Author: Cloudflare, Inc.
9
  License: BSD-3-Clause
config.json CHANGED
@@ -25,5 +25,5 @@
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
- "version": "4.8.0"
29
  }
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
+ "version": "4.8.1"
29
  }
output.log CHANGED
@@ -16,32 +16,33 @@ php-7.4-build2: Pulling from cloudflare/cloudflare-wordpress/php-actions_compose
16
  5571c1cd7f43: Pulling fs layer
17
  65564f077fec: Pulling fs layer
18
  4d1e94121e00: Pulling fs layer
19
- 79c03e12047a: Waiting
20
  51393fef6543: Waiting
21
  5571c1cd7f43: Waiting
22
  65564f077fec: Waiting
23
  4d1e94121e00: Waiting
24
- 4612e05a72cf: Waiting
25
  9b2beae78beb: Waiting
 
 
26
  320f26ee9b1c: Verifying Checksum
27
  320f26ee9b1c: Download complete
28
  30e209609427: Verifying Checksum
29
  30e209609427: Download complete
30
  801bfaa63ef2: Verifying Checksum
 
31
  801bfaa63ef2: Pull complete
32
  4612e05a72cf: Verifying Checksum
33
  4612e05a72cf: Download complete
34
  30e209609427: Pull complete
35
- 320f26ee9b1c: Pull complete
36
  79c03e12047a: Verifying Checksum
37
  79c03e12047a: Download complete
 
38
  4612e05a72cf: Pull complete
39
  9b2beae78beb: Verifying Checksum
40
  9b2beae78beb: Download complete
41
- 9b2beae78beb: Pull complete
42
- 79c03e12047a: Pull complete
43
  5571c1cd7f43: Verifying Checksum
44
  5571c1cd7f43: Download complete
 
 
45
  51393fef6543: Verifying Checksum
46
  51393fef6543: Download complete
47
  65564f077fec: Verifying Checksum
16
  5571c1cd7f43: Pulling fs layer
17
  65564f077fec: Pulling fs layer
18
  4d1e94121e00: Pulling fs layer
 
19
  51393fef6543: Waiting
20
  5571c1cd7f43: Waiting
21
  65564f077fec: Waiting
22
  4d1e94121e00: Waiting
 
23
  9b2beae78beb: Waiting
24
+ 79c03e12047a: Waiting
25
+ 4612e05a72cf: Waiting
26
  320f26ee9b1c: Verifying Checksum
27
  320f26ee9b1c: Download complete
28
  30e209609427: Verifying Checksum
29
  30e209609427: Download complete
30
  801bfaa63ef2: Verifying Checksum
31
+ 801bfaa63ef2: Download complete
32
  801bfaa63ef2: Pull complete
33
  4612e05a72cf: Verifying Checksum
34
  4612e05a72cf: Download complete
35
  30e209609427: Pull complete
 
36
  79c03e12047a: Verifying Checksum
37
  79c03e12047a: Download complete
38
+ 320f26ee9b1c: Pull complete
39
  4612e05a72cf: Pull complete
40
  9b2beae78beb: Verifying Checksum
41
  9b2beae78beb: Download complete
 
 
42
  5571c1cd7f43: Verifying Checksum
43
  5571c1cd7f43: Download complete
44
+ 9b2beae78beb: Pull complete
45
+ 79c03e12047a: Pull complete
46
  51393fef6543: Verifying Checksum
47
  51393fef6543: Download complete
48
  65564f077fec: Verifying Checksum
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: icyapril, manatarms, thillcf, deuill, epatryk, jacobbednarz
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.9
6
- Stable tag: 4.8.0
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
@@ -99,6 +99,10 @@ Yes, Cloudflare works with, and helps speed up your site even more, if you have
99
 
100
  == Changelog ==
101
 
 
 
 
 
102
  = 4.8.0 - 2022-03-15 =
103
 
104
  * Updated supported WordPress version to 5.9
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.9
6
+ Stable tag: 4.8.1
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
99
 
100
  == Changelog ==
101
 
102
+ = 4.8.1 - 2022-03-18 =
103
+
104
+ * Loosen domain check for cache purge calls to allow subdomains
105
+
106
  = 4.8.0 - 2022-03-15 =
107
 
108
  * Updated supported WordPress version to 5.9
src/WordPress/Hooks.php CHANGED
@@ -176,7 +176,7 @@ class Hooks
176
 
177
  // Don't attempt to purge anything outside of the provided zone.
178
  foreach ($urls as $key => $url) {
179
- if (parse_url($url, PHP_URL_HOST) !== $wpDomain) {
180
  unset($urls[$key]);
181
  }
182
  }
176
 
177
  // Don't attempt to purge anything outside of the provided zone.
178
  foreach ($urls as $key => $url) {
179
+ if (!Utils::strEndsWith(parse_url($url, PHP_URL_HOST), $wpDomain)) {
180
  unset($urls[$key]);
181
  }
182
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitab0e85691b9dfdb978ff9a47ae4e2bf4::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit1bab5afe90fc39ae8176aa9a68e3c9d5
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire1bab5afe90fc39ae8176aa9a68e3c9d5($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire1bab5afe90fc39ae8176aa9a68e3c9d5($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitab0e85691b9dfdb978ff9a47ae4e2bf4
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitab0e85691b9dfdb978ff9a47ae4e2bf4', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitab0e85691b9dfdb978ff9a47ae4e2bf4', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequireab0e85691b9dfdb978ff9a47ae4e2bf4($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequireab0e85691b9dfdb978ff9a47ae4e2bf4($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
@@ -69,10 +69,10 @@ class ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5
69
  public static function getInitializer(ClassLoader $loader)
70
  {
71
  return \Closure::bind(function () use ($loader) {
72
- $loader->prefixLengthsPsr4 = ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::$prefixLengthsPsr4;
73
- $loader->prefixDirsPsr4 = ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::$prefixDirsPsr4;
74
- $loader->prefixesPsr0 = ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::$prefixesPsr0;
75
- $loader->classMap = ComposerStaticInit1bab5afe90fc39ae8176aa9a68e3c9d5::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
69
  public static function getInitializer(ClassLoader $loader)
70
  {
71
  return \Closure::bind(function () use ($loader) {
72
+ $loader->prefixLengthsPsr4 = ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::$prefixLengthsPsr4;
73
+ $loader->prefixDirsPsr4 = ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::$prefixDirsPsr4;
74
+ $loader->prefixesPsr0 = ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::$prefixesPsr0;
75
+ $loader->classMap = ComposerStaticInitab0e85691b9dfdb978ff9a47ae4e2bf4::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }