Skip to content

Commit

Permalink
Merge pull request #414 from cloudflare/prepare-4.5.0
Browse files Browse the repository at this point in the history
Prepare 4.5.0
  • Loading branch information
jacobbednarz authored Jun 1, 2021
2 parents f010c2a + 65951d5 commit f08f2e5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Cloudflare
Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
Description: Cloudflare speeds up and protects your WordPress site.
Version: 4.4.0
Version: 4.5.0
Requires PHP: 7.2
Author: Cloudflare, Inc.
License: BSD-3-Clause
Expand Down Expand Up @@ -38,12 +38,12 @@
// PHP version check has to go here because the below code uses namespaces
if (version_compare(PHP_VERSION, CLOUDFLARE_MIN_PHP_VERSION, '<')) {
// We need to load "plugin.php" manually to call "deactivate_plugins"
require_once ABSPATH.'wp-admin/includes/plugin.php';
require_once ABSPATH . 'wp-admin/includes/plugin.php';

deactivate_plugins(plugin_basename(__FILE__), true);
wp_die('<p>The Cloudflare plugin requires a PHP version of at least '.CLOUDFLARE_MIN_PHP_VERSION.'; you have '.PHP_VERSION.'.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => true));
wp_die('<p>The Cloudflare plugin requires a PHP version of at least ' . CLOUDFLARE_MIN_PHP_VERSION . '; you have ' . PHP_VERSION . '.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => true));
}

// Plugin uses namespaces. To support old PHP version which doesn't support
// namespaces we load everything in "cloudflare.loader.php"
require_once CLOUDFLARE_PLUGIN_DIR.'cloudflare.loader.php';
require_once CLOUDFLARE_PLUGIN_DIR . 'cloudflare.loader.php';
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"_comment": [
"php-compatibility-install comes from https://github.com/wimg/PHPCompatibility/issues/102#issuecomment-255778195"
],
"version": "4.4.0",
"version": "4.5.0",
"config": {
"platform": {
"php": "7.2"
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
},
"locale": "en",
"integrationName": "wordpress",
"version": "4.4.0"
"version": "4.5.0"
}
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: icyapril, manatarms, thillcf, deuill, epatryk, jacobbednarz
Tags: cloudflare, seo, ssl, ddos, speed, security, cdn, performance, free
Requires at least: 3.4
Tested up to: 5.6
Stable tag: 4.4.0
Stable tag: 4.5.0
Requires PHP: 7.2
License: BSD-3-Clause

Expand Down Expand Up @@ -102,6 +102,14 @@ Yes, Cloudflare works with, and helps speed up your site even more, if you have

== Changelog ==

= 4.5.0 - 2021-06-02 =

* Document unintuitive `transition_post_status` WP hook behavior
* Only purge public taxonomies while clearing any empty values from the list
* Better handling of cases where `wp_get_attachment_image_src` is false and not a usable array
* Support activation of IDN domains
* Improve development experience by shipping a Docker Compose file with more tooling and documentation

= 4.4.0 - 2021-03-23 =

* Purge posts when transitioning to or from the 'published' state
Expand Down

0 comments on commit f08f2e5

Please sign in to comment.