Cloudflare - Version 3.8.4

Version Description

  • 2020-10-13 =

  • Added composer's type=wordpress-plugin for Bedrock users

  • Fixed typo in readme.txt

  • Fix modify header exception thrown during wp-cron

  1. Cloudflare Plugin

=

Download this release

Release Info

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

Code changes from version 3.8.3 to 3.8.4

Files changed (71) hide show
  1. .github/workflows/php.yml +0 -48
  2. .github/workflows/stale.yml +0 -25
  3. assets/analytics-welcome.svg +0 -0
  4. assets/details-arrows.png +0 -0
  5. assets/icon-bolt.svg +0 -0
  6. assets/icon-lock.svg +0 -0
  7. assets/icon-pin.svg +0 -0
  8. assets/icon-shield.svg +0 -0
  9. assets/icons-seee324dde5.png +0 -0
  10. assets/icons_2x-s6333fe7591.png +0 -0
  11. assets/layers-2x.png +0 -0
  12. assets/layers.png +0 -0
  13. assets/logo-reverse.svg +0 -0
  14. assets/logo-symbol.svg +0 -0
  15. assets/logo.svg +0 -0
  16. assets/modal-two-factor-auth.png +0 -0
  17. assets/modal-two-factor-auth_2x.png +0 -0
  18. assets/overview-welcome-yjs.svg +0 -0
  19. assets/overview-welcome.svg +0 -0
  20. assets/plan-changed-success.svg +0 -0
  21. assets/request-submitted-success.svg +0 -0
  22. assets/select2-cf.png +0 -0
  23. assets/select2x2-cf.png +0 -0
  24. assets/spinner.gif +0 -0
  25. assets/vertical-range.png +0 -0
  26. assets/yjs-logo.svg +0 -0
  27. cloudflare.php +1 -1
  28. composer.json +2 -1
  29. composer.lock +1 -1
  30. config.json +1 -1
  31. fonts/cloudflare-font.eot +0 -0
  32. fonts/cloudflare-font.svg +0 -0
  33. fonts/cloudflare-font.ttf +0 -0
  34. fonts/cloudflare-font.woff +0 -0
  35. fonts/opensans-300.eot +0 -0
  36. fonts/opensans-300.ttf +0 -0
  37. fonts/opensans-300.woff +0 -0
  38. fonts/opensans-300.woff2 +0 -0
  39. fonts/opensans-300i.eot +0 -0
  40. fonts/opensans-300i.ttf +0 -0
  41. fonts/opensans-300i.woff +0 -0
  42. fonts/opensans-300i.woff2 +0 -0
  43. fonts/opensans-400.eot +0 -0
  44. fonts/opensans-400.ttf +0 -0
  45. fonts/opensans-400.woff +0 -0
  46. fonts/opensans-400.woff2 +0 -0
  47. fonts/opensans-400i.eot +0 -0
  48. fonts/opensans-400i.ttf +0 -0
  49. fonts/opensans-400i.woff +0 -0
  50. fonts/opensans-400i.woff2 +0 -0
  51. fonts/opensans-600.eot +0 -0
  52. fonts/opensans-600.ttf +0 -0
  53. fonts/opensans-600.woff +0 -0
  54. fonts/opensans-600.woff2 +0 -0
  55. fonts/opensans-700.eot +0 -0
  56. fonts/opensans-700.ttf +0 -0
  57. fonts/opensans-700.woff +0 -0
  58. fonts/opensans-700.woff2 +0 -0
  59. lang/de.js +0 -0
  60. lang/es.js +0 -0
  61. lang/fr.js +0 -0
  62. lang/it.js +0 -0
  63. lang/nl.js +0 -0
  64. lang/pt.js +0 -0
  65. readme.txt +10 -2
  66. src/WordPress/Hooks.php +6 -0
  67. src/WordPress/composer.json +2 -1
  68. src/WordPress/config.json +1 -1
  69. stylesheets/cf.core.css +0 -0
  70. stylesheets/hacks.css +0 -0
  71. vendor/psr/log/.gitignore +1 -0
.github/workflows/php.yml DELETED
@@ -1,48 +0,0 @@
1
- name: PHP Composer
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
-
9
- jobs:
10
- build:
11
-
12
- runs-on: ubuntu-latest
13
-
14
- strategy:
15
- matrix:
16
- php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
17
-
18
- steps:
19
- - uses: actions/checkout@v2
20
-
21
- - name: Setup PHP
22
- uses: shivammathur/setup-php@v2
23
- with:
24
- php-version: ${{ matrix.php-versions }}
25
- env:
26
- update: true
27
-
28
- - name: Validate composer.json and composer.lock
29
- run: composer validate
30
-
31
- - name: Install dependencies
32
- if: steps.composer-cache.outputs.cache-hit != 'true'
33
- run: composer install --prefer-dist --no-progress --no-suggest --verbose
34
-
35
- - name: Format
36
- run: |
37
- composer run-script format || exit_code=$?
38
- if (( exit_code > 1 )) ; then
39
- exit $exit_code
40
- fi
41
-
42
- # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
43
- # Docs: https://getcomposer.org/doc/articles/scripts.md
44
-
45
- - name: Run test suite
46
- # Skip testing on PHP 7.4, because php-mock required by PHP 5.6 breaks on 7.4+
47
- if: matrix.php-versions < '7.4'
48
- run: composer run-script test
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/stale.yml DELETED
@@ -1,25 +0,0 @@
1
- name: Mark stale issues and pull requests
2
-
3
- on:
4
- schedule:
5
- - cron: "30 1 * * *"
6
-
7
- jobs:
8
- stale:
9
-
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - uses: actions/stale@v3
14
- with:
15
- repo-token: ${{ secrets.GITHUB_TOKEN }}
16
- stale-issue-message: >
17
- This issue has been automatically marked as stale because it has not had
18
- recent activity. It will be closed if no further activity occurs. Thank you
19
- for your contributions.
20
- stale-pr-message: >
21
- This pull request has been automatically marked as stale because it has not had
22
- recent activity. It will be closed if no further activity occurs. Thank you
23
- for your contributions.
24
- days-before-stale: 180
25
- days-before-close: 30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/analytics-welcome.svg CHANGED
File without changes
assets/details-arrows.png CHANGED
File without changes
assets/icon-bolt.svg CHANGED
File without changes
assets/icon-lock.svg CHANGED
File without changes
assets/icon-pin.svg CHANGED
File without changes
assets/icon-shield.svg CHANGED
File without changes
assets/icons-seee324dde5.png CHANGED
File without changes
assets/icons_2x-s6333fe7591.png CHANGED
File without changes
assets/layers-2x.png CHANGED
File without changes
assets/layers.png CHANGED
File without changes
assets/logo-reverse.svg CHANGED
File without changes
assets/logo-symbol.svg CHANGED
File without changes
assets/logo.svg CHANGED
File without changes
assets/modal-two-factor-auth.png CHANGED
File without changes
assets/modal-two-factor-auth_2x.png CHANGED
File without changes
assets/overview-welcome-yjs.svg CHANGED
File without changes
assets/overview-welcome.svg CHANGED
File without changes
assets/plan-changed-success.svg CHANGED
File without changes
assets/request-submitted-success.svg CHANGED
File without changes
assets/select2-cf.png CHANGED
File without changes
assets/select2x2-cf.png CHANGED
File without changes
assets/spinner.gif CHANGED
File without changes
assets/vertical-range.png CHANGED
File without changes
assets/yjs-logo.svg CHANGED
File without changes
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: 3.8.3
7
  Author: Cloudflare, Inc.
8
  License: BSD-3-Clause
9
  */
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: 3.8.4
7
  Author: Cloudflare, Inc.
8
  License: BSD-3-Clause
9
  */
composer.json CHANGED
@@ -7,6 +7,7 @@
7
  "description": "A Cloudflare plugin for WordPress",
8
  "license": "BSD-3-Clause",
9
  "name": "cloudflare/wordpress-plugin",
 
10
  "require": {
11
  "cloudflare/cf-ip-rewrite": "^1.0.0",
12
  "cloudflare/cloudflare-plugin-backend": "2.4.0",
@@ -29,7 +30,7 @@
29
  "_comment": [
30
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
31
  ],
32
- "version": "3.8.3",
33
  "config": {
34
  "platform": {
35
  "php": "5.6.40"
7
  "description": "A Cloudflare plugin for WordPress",
8
  "license": "BSD-3-Clause",
9
  "name": "cloudflare/wordpress-plugin",
10
+ "type": "wordpress-plugin",
11
  "require": {
12
  "cloudflare/cf-ip-rewrite": "^1.0.0",
13
  "cloudflare/cloudflare-plugin-backend": "2.4.0",
30
  "_comment": [
31
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
32
  ],
33
+ "version": "3.8.4",
34
  "config": {
35
  "platform": {
36
  "php": "5.6.40"
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": "04424d401190912e6e604bbc33e79895",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
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": "d089086d635068ee32901d8f9a88ecd7",
8
  "packages": [
9
  {
10
  "name": "cloudflare/cf-ip-rewrite",
config.json CHANGED
@@ -25,5 +25,5 @@
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
- "version": "3.8.3"
29
  }
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
+ "version": "3.8.4"
29
  }
fonts/cloudflare-font.eot CHANGED
File without changes
fonts/cloudflare-font.svg CHANGED
File without changes
fonts/cloudflare-font.ttf CHANGED
File without changes
fonts/cloudflare-font.woff CHANGED
File without changes
fonts/opensans-300.eot CHANGED
File without changes
fonts/opensans-300.ttf CHANGED
File without changes
fonts/opensans-300.woff CHANGED
File without changes
fonts/opensans-300.woff2 CHANGED
File without changes
fonts/opensans-300i.eot CHANGED
File without changes
fonts/opensans-300i.ttf CHANGED
File without changes
fonts/opensans-300i.woff CHANGED
File without changes
fonts/opensans-300i.woff2 CHANGED
File without changes
fonts/opensans-400.eot CHANGED
File without changes
fonts/opensans-400.ttf CHANGED
File without changes
fonts/opensans-400.woff CHANGED
File without changes
fonts/opensans-400.woff2 CHANGED
File without changes
fonts/opensans-400i.eot CHANGED
File without changes
fonts/opensans-400i.ttf CHANGED
File without changes
fonts/opensans-400i.woff CHANGED
File without changes
fonts/opensans-400i.woff2 CHANGED
File without changes
fonts/opensans-600.eot CHANGED
File without changes
fonts/opensans-600.ttf CHANGED
File without changes
fonts/opensans-600.woff CHANGED
File without changes
fonts/opensans-600.woff2 CHANGED
File without changes
fonts/opensans-700.eot CHANGED
File without changes
fonts/opensans-700.ttf CHANGED
File without changes
fonts/opensans-700.woff CHANGED
File without changes
fonts/opensans-700.woff2 CHANGED
File without changes
lang/de.js CHANGED
File without changes
lang/es.js CHANGED
File without changes
lang/fr.js CHANGED
File without changes
lang/it.js CHANGED
File without changes
lang/nl.js CHANGED
File without changes
lang/pt.js CHANGED
File without changes
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: icyapril, manatarms, thillcf, deuill, epatryk
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.5.1
6
- Stable tag: 3.8.3
7
  License: BSD-3-Clause
8
 
9
  All of Cloudflare’s performance and security benefits in a simple one-click install.
@@ -26,7 +26,7 @@ Available on all of Cloudflare’s [paid plans](https://www.cloudflare.com/plans
26
 
27
  **Automatic cache purge on website updates**
28
 
29
- If you don't take advantage of the performance benefits of Automatic Platform Optimization for WordPress, using the CLoudflare plugin still ensures that changes to the appearance of your website purge the cache. This means that you can focus on your website, while we ensure that the latest static content is always available to your visitors.
30
 
31
  Additionally, Cloudflare’s plugin for WordPress automatically refreshes the Cloudflare cache of static content for each post/page/custom post type when you update the content.
32
 
@@ -87,6 +87,14 @@ Yes, Cloudflare works with, and helps speed up your site even more, if you have
87
 
88
  == Screenshots ==
89
 
 
 
 
 
 
 
 
 
90
  1. Cloudflare Plugin
91
 
92
  == Changelog ==
3
  Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
4
  Requires at least: 3.4
5
  Tested up to: 5.5.1
6
+ Stable tag: 3.8.4
7
  License: BSD-3-Clause
8
 
9
  All of Cloudflare’s performance and security benefits in a simple one-click install.
26
 
27
  **Automatic cache purge on website updates**
28
 
29
+ If you don't take advantage of the performance benefits of Automatic Platform Optimization for WordPress, using the Cloudflare plugin still ensures that changes to the appearance of your website purge the cache. This means that you can focus on your website, while we ensure that the latest static content is always available to your visitors.
30
 
31
  Additionally, Cloudflare’s plugin for WordPress automatically refreshes the Cloudflare cache of static content for each post/page/custom post type when you update the content.
32
 
87
 
88
  == Screenshots ==
89
 
90
+ == Changelog ==
91
+
92
+ = 3.8.4 - 2020-10-13 =
93
+
94
+ * Added composer's type=wordpress-plugin for Bedrock users
95
+ * Fixed typo in readme.txt
96
+ * Fix modify header exception thrown during wp-cron
97
+
98
  1. Cloudflare Plugin
99
 
100
  == Changelog ==
src/WordPress/Hooks.php CHANGED
@@ -307,6 +307,12 @@ class Hooks
307
 
308
  public function initAutomaticPlatformOptimization()
309
  {
 
 
 
 
 
 
310
  // add header unconditionally so we can detect plugin is activated
311
  if (!is_user_logged_in() ) {
312
  header( 'cf-edge-cache: cache,platform=wordpress' );
307
 
308
  public function initAutomaticPlatformOptimization()
309
  {
310
+ // it could be too late to set the headers,
311
+ // return early without triggering a warning in logs
312
+ if (headers_sent()) {
313
+ return;
314
+ }
315
+
316
  // add header unconditionally so we can detect plugin is activated
317
  if (!is_user_logged_in() ) {
318
  header( 'cf-edge-cache: cache,platform=wordpress' );
src/WordPress/composer.json CHANGED
@@ -7,6 +7,7 @@
7
  "description": "A Cloudflare plugin for WordPress",
8
  "license": "BSD-3-Clause",
9
  "name": "cloudflare/wordpress-plugin",
 
10
  "require": {
11
  "cloudflare/cf-ip-rewrite": "^1.0.0",
12
  "cloudflare/cloudflare-plugin-backend": "2.4.0",
@@ -29,7 +30,7 @@
29
  "_comment": [
30
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
31
  ],
32
- "version": "3.8.3",
33
  "config": {
34
  "platform": {
35
  "php": "5.6.40"
7
  "description": "A Cloudflare plugin for WordPress",
8
  "license": "BSD-3-Clause",
9
  "name": "cloudflare/wordpress-plugin",
10
+ "type": "wordpress-plugin",
11
  "require": {
12
  "cloudflare/cf-ip-rewrite": "^1.0.0",
13
  "cloudflare/cloudflare-plugin-backend": "2.4.0",
30
  "_comment": [
31
  "php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
32
  ],
33
+ "version": "3.8.4",
34
  "config": {
35
  "platform": {
36
  "php": "5.6.40"
src/WordPress/config.json CHANGED
@@ -25,5 +25,5 @@
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
- "version": "3.8.3"
29
  }
25
  },
26
  "locale": "en",
27
  "integrationName": "wordpress",
28
+ "version": "3.8.4"
29
  }
stylesheets/cf.core.css CHANGED
File without changes
stylesheets/hacks.css CHANGED
File without changes
vendor/psr/log/.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ vendor