Cloudflare - Version 4.9.1

Version Description

  • 2022-05-04 =

  • Handle empty URL arrays for purging.

  • Swap publicly_queryable for is_post_type_viewable when determining if the post is public.

  • Update always_use_https check to work with the API lacking a "value" for the key.

  • purgeCacheByRelevantURLs now accepts either an array or single ID

Download this release

Release Info

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

Code changes from version 4.9.0 to 4.9.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.3
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.9.1
7
  Requires PHP: 7.2
8
  Author: Cloudflare, Inc.
9
  License: BSD-3-Clause
composer.json CHANGED
@@ -32,7 +32,7 @@
32
  "_comment": [
33
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
34
  ],
35
- "version": "4.8.3",
36
  "config": {
37
  "platform": {
38
  "php": "7.2"
32
  "_comment": [
33
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
34
  ],
35
+ "version": "4.9.1",
36
  "config": {
37
  "platform": {
38
  "php": "7.2"
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "ecc1e471de68cf38adee93b24bc9db24",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
@@ -1021,16 +1021,16 @@
1021
  },
1022
  {
1023
  "name": "phpdocumentor/type-resolver",
1024
- "version": "1.6.0",
1025
  "source": {
1026
  "type": "git",
1027
  "url": "https://github.com/phpDocumentor/TypeResolver.git",
1028
- "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706"
1029
  },
1030
  "dist": {
1031
  "type": "zip",
1032
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706",
1033
- "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706",
1034
  "shasum": ""
1035
  },
1036
  "require": {
@@ -1063,7 +1063,7 @@
1063
  }
1064
  ],
1065
  "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
1066
- "time": "2022-01-04T19:58:01+00:00"
1067
  },
1068
  {
1069
  "name": "phpspec/prophecy",
@@ -1407,16 +1407,16 @@
1407
  },
1408
  {
1409
  "name": "phpunit/phpunit",
1410
- "version": "8.5.24",
1411
  "source": {
1412
  "type": "git",
1413
  "url": "https://github.com/sebastianbergmann/phpunit.git",
1414
- "reference": "293cb0099d75407d971a73f41e51f35b664667ed"
1415
  },
1416
  "dist": {
1417
  "type": "zip",
1418
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/293cb0099d75407d971a73f41e51f35b664667ed",
1419
- "reference": "293cb0099d75407d971a73f41e51f35b664667ed",
1420
  "shasum": ""
1421
  },
1422
  "require": {
@@ -1496,7 +1496,7 @@
1496
  "type": "github"
1497
  }
1498
  ],
1499
- "time": "2022-03-05T16:52:36+00:00"
1500
  },
1501
  {
1502
  "name": "sebastian/code-unit-reverse-lookup",
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "8258814eb30e4f1d3b5fe4aa64eccea9",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
1021
  },
1022
  {
1023
  "name": "phpdocumentor/type-resolver",
1024
+ "version": "1.6.1",
1025
  "source": {
1026
  "type": "git",
1027
  "url": "https://github.com/phpDocumentor/TypeResolver.git",
1028
+ "reference": "77a32518733312af16a44300404e945338981de3"
1029
  },
1030
  "dist": {
1031
  "type": "zip",
1032
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3",
1033
+ "reference": "77a32518733312af16a44300404e945338981de3",
1034
  "shasum": ""
1035
  },
1036
  "require": {
1063
  }
1064
  ],
1065
  "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
1066
+ "time": "2022-03-15T21:29:03+00:00"
1067
  },
1068
  {
1069
  "name": "phpspec/prophecy",
1407
  },
1408
  {
1409
  "name": "phpunit/phpunit",
1410
+ "version": "8.5.26",
1411
  "source": {
1412
  "type": "git",
1413
  "url": "https://github.com/sebastianbergmann/phpunit.git",
1414
+ "reference": "ef117c59fc4c54a979021b26d08a3373e386606d"
1415
  },
1416
  "dist": {
1417
  "type": "zip",
1418
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ef117c59fc4c54a979021b26d08a3373e386606d",
1419
+ "reference": "ef117c59fc4c54a979021b26d08a3373e386606d",
1420
  "shasum": ""
1421
  },
1422
  "require": {
1496
  "type": "github"
1497
  }
1498
  ],
1499
+ "time": "2022-04-01T12:34:39+00:00"
1500
  },
1501
  {
1502
  "name": "sebastian/code-unit-reverse-lookup",
config.json CHANGED
@@ -25,5 +25,5 @@
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
- "version": "4.8.3"
29
  }
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
+ "version": "4.9.1"
29
  }
output.log CHANGED
@@ -16,37 +16,37 @@ 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
  51393fef6543: Waiting
20
  5571c1cd7f43: Waiting
21
  65564f077fec: Waiting
22
  4d1e94121e00: Waiting
23
- 4612e05a72cf: Waiting
24
- 9b2beae78beb: Waiting
25
- 79c03e12047a: Waiting
26
  320f26ee9b1c: Verifying Checksum
27
  320f26ee9b1c: Download complete
28
  801bfaa63ef2: Verifying Checksum
29
  801bfaa63ef2: Download complete
 
 
30
  801bfaa63ef2: Pull complete
31
  4612e05a72cf: Verifying Checksum
32
  4612e05a72cf: Download complete
33
- 30e209609427: Verifying Checksum
34
- 30e209609427: Download complete
35
- 9b2beae78beb: Verifying Checksum
36
- 9b2beae78beb: Download complete
37
  30e209609427: Pull complete
38
- 320f26ee9b1c: Pull complete
39
  79c03e12047a: Verifying Checksum
40
  79c03e12047a: Download complete
 
 
 
41
  4612e05a72cf: Pull complete
42
  5571c1cd7f43: Verifying Checksum
43
  5571c1cd7f43: Download complete
44
- 9b2beae78beb: Pull complete
45
  51393fef6543: Verifying Checksum
46
  51393fef6543: Download complete
47
- 79c03e12047a: Pull complete
48
  65564f077fec: Verifying Checksum
49
  65564f077fec: Download complete
 
50
  4d1e94121e00: Verifying Checksum
51
  4d1e94121e00: Download complete
52
  51393fef6543: Pull complete
16
  5571c1cd7f43: Pulling fs layer
17
  65564f077fec: Pulling fs layer
18
  4d1e94121e00: Pulling fs layer
19
+ 4612e05a72cf: Waiting
20
+ 9b2beae78beb: Waiting
21
+ 79c03e12047a: Waiting
22
  51393fef6543: Waiting
23
  5571c1cd7f43: Waiting
24
  65564f077fec: Waiting
25
  4d1e94121e00: Waiting
 
 
 
26
  320f26ee9b1c: Verifying Checksum
27
  320f26ee9b1c: Download complete
28
  801bfaa63ef2: Verifying Checksum
29
  801bfaa63ef2: Download complete
30
+ 30e209609427: Verifying Checksum
31
+ 30e209609427: 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
+ 9b2beae78beb: Verifying Checksum
40
+ 9b2beae78beb: Download complete
41
  4612e05a72cf: Pull complete
42
  5571c1cd7f43: Verifying Checksum
43
  5571c1cd7f43: Download complete
 
44
  51393fef6543: Verifying Checksum
45
  51393fef6543: Download complete
46
+ 9b2beae78beb: Pull complete
47
  65564f077fec: Verifying Checksum
48
  65564f077fec: Download complete
49
+ 79c03e12047a: Pull complete
50
  4d1e94121e00: Verifying Checksum
51
  4d1e94121e00: Download complete
52
  51393fef6543: Pull complete
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.3
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
@@ -99,6 +99,13 @@ Yes, Cloudflare works with, and helps speed up your site even more, if you have
99
 
100
  == Changelog ==
101
 
 
 
 
 
 
 
 
102
  = 4.8.3 - 2022-03-22 =
103
 
104
  * When a zone has "Always Use HTTPS" enabled, only send HTTPS based URLs. HTTP URLs will never be hit and never present in the cache.
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.9.1
7
  Requires PHP: 7.2
8
  License: BSD-3-Clause
9
 
99
 
100
  == Changelog ==
101
 
102
+ = 4.9.1 - 2022-05-04 =
103
+
104
+ * Handle empty URL arrays for purging.
105
+ * Swap `publicly_queryable` for `is_post_type_viewable` when determining if the post is public.
106
+ * Update `always_use_https` check to work with the API lacking a "value" for the key.
107
+ * `purgeCacheByRelevantURLs` now accepts either an array or single ID
108
+
109
  = 4.8.3 - 2022-03-22 =
110
 
111
  * When a zone has "Always Use HTTPS" enabled, only send HTTPS based URLs. HTTP URLs will never be hit and never present in the cache.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6b4c222723b6c5a25a29c3f8338d7ed4::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5', '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\ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitd4f4c0b99524330ed6fabcae4013f5c5
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequired4f4c0b99524330ed6fabcae4013f5c5($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequired4f4c0b99524330ed6fabcae4013f5c5($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 ComposerAutoloaderInit6b4c222723b6c5a25a29c3f8338d7ed4
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit6b4c222723b6c5a25a29c3f8338d7ed4', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit6b4c222723b6c5a25a29c3f8338d7ed4', '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\ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::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\ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire6b4c222723b6c5a25a29c3f8338d7ed4($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire6b4c222723b6c5a25a29c3f8338d7ed4($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 ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
@@ -69,10 +69,10 @@ class ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5
69
  public static function getInitializer(ClassLoader $loader)
70
  {
71
  return \Closure::bind(function () use ($loader) {
72
- $loader->prefixLengthsPsr4 = ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::$prefixLengthsPsr4;
73
- $loader->prefixDirsPsr4 = ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::$prefixDirsPsr4;
74
- $loader->prefixesPsr0 = ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::$prefixesPsr0;
75
- $loader->classMap = ComposerStaticInitd4f4c0b99524330ed6fabcae4013f5c5::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4
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 = ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::$prefixLengthsPsr4;
73
+ $loader->prefixDirsPsr4 = ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::$prefixDirsPsr4;
74
+ $loader->prefixesPsr0 = ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::$prefixesPsr0;
75
+ $loader->classMap = ComposerStaticInit6b4c222723b6c5a25a29c3f8338d7ed4::$classMap;
76
 
77
  }, null, ClassLoader::class);
78
  }