diff --git a/.github_changelog_generator b/.github_changelog_generator index 80bb062..0e874b8 100644 --- a/.github_changelog_generator +++ b/.github_changelog_generator @@ -1,2 +1,2 @@ unreleased=true -future-release=2.0.0 +future-release=2.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 079f785..e71b099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,28 +1,43 @@ # Change Log +## [2.0.1](https://github.com/TypistTech/sunny/tree/2.0.1) (2017-05-06) +[Full Changelog](https://github.com/TypistTech/sunny/compare/2.0.0...2.0.1) + +**Closed issues:** + +- Check for PHP version [\#15](https://github.com/TypistTech/sunny/issues/15) +- Cloudflare API v4 [\#6](https://github.com/TypistTech/sunny/issues/6) +- Sunny breaks dashboard 'click to toggle' functionality [\#1](https://github.com/TypistTech/sunny/issues/1) + +**Merged pull requests:** + +- Self deactivate if PHP version is older than 7.0.0 [\#58](https://github.com/TypistTech/sunny/pull/58) ([TangRufus](https://github.com/TangRufus)) +- Fix: TravisCI expired GitHub token [\#54](https://github.com/TypistTech/sunny/pull/54) ([TangRufus](https://github.com/TangRufus)) + ## [2.0.0](https://github.com/TypistTech/sunny/tree/2.0.0) (2017-05-05) [Full Changelog](https://github.com/TypistTech/sunny/compare/1.5.2...2.0.0) **Closed issues:** +- Use TravisCI to deploy production code [\#27](https://github.com/TypistTech/sunny/issues/27) +- Add yoast/i18n-module [\#19](https://github.com/TypistTech/sunny/issues/19) +- Add review me notice [\#16](https://github.com/TypistTech/sunny/issues/16) +- warning in uninstall.php [\#4](https://github.com/TypistTech/sunny/issues/4) +- Purge Page on Update [\#3](https://github.com/TypistTech/sunny/issues/3) +- Can Sunny purge the rss feed on publish? [\#2](https://github.com/TypistTech/sunny/issues/2) - Hide Admin Bar on front-end [\#44](https://github.com/TypistTech/sunny/issues/44) - Change Cloudflare namespace [\#40](https://github.com/TypistTech/sunny/issues/40) - Do purge when posts changed [\#38](https://github.com/TypistTech/sunny/issues/38) - Process purging in chunk, 30 per batch [\#28](https://github.com/TypistTech/sunny/issues/28) -- Use TravisCI to deploy production code [\#27](https://github.com/TypistTech/sunny/issues/27) - Get related Urls [\#24](https://github.com/TypistTech/sunny/issues/24) -- Add yoast/i18n-module [\#19](https://github.com/TypistTech/sunny/issues/19) -- Add review me notice [\#16](https://github.com/TypistTech/sunny/issues/16) - Misc Integration [\#11](https://github.com/TypistTech/sunny/issues/11) - Add purge Url filter [\#10](https://github.com/TypistTech/sunny/issues/10) - Add tests [\#9](https://github.com/TypistTech/sunny/issues/9) - Clone from WP Cloudflare Guard@master [\#8](https://github.com/TypistTech/sunny/issues/8) -- warning in uninstall.php [\#4](https://github.com/TypistTech/sunny/issues/4) -- Purge Page on Update [\#3](https://github.com/TypistTech/sunny/issues/3) -- Can Sunny purge the rss feed on publish? [\#2](https://github.com/TypistTech/sunny/issues/2) **Merged pull requests:** +- Version bump 2.0.0 [\#53](https://github.com/TypistTech/sunny/pull/53) ([TangRufus](https://github.com/TangRufus)) - Add announcement [\#52](https://github.com/TypistTech/sunny/pull/52) ([TangRufus](https://github.com/TangRufus)) - Refactor [\#51](https://github.com/TypistTech/sunny/pull/51) ([TangRufus](https://github.com/TangRufus)) - Hide admin bar on public-facing pages [\#50](https://github.com/TypistTech/sunny/pull/50) ([TangRufus](https://github.com/TangRufus)) diff --git a/README.md b/README.md index ad494c2..791e658 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.typist.tech/donate/sunny/) [![Hire Typist Tech](https://img.shields.io/badge/Hire-Typist%20Tech-ff69b4.svg)](https://www.typist.tech/contact/) -Connecting WordPress with Cloudflare firewall, protect your WordPress site at DNS level. Automatically create firewall rules to block dangerous IPs +Automatically purge CloudFlare cache, including cache everything rules. diff --git a/README.txt b/README.txt index 7a015c1..7a556c5 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Donate link: https://www.typist.tech/donate/sunny/ Tags: cloudflare, firewall, security, spam Requires at least: 4.7 Tested up to: 4.7.4 -Stable tag: 2.0.0 +Stable tag: 2.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -37,8 +37,8 @@ At the time of writing, Cloudflare's [official plugin](https://wordpress.org/plu = Things You Need to Know = -* You need PHP 7.0 or later -* You need WordPress 4.7 or later +* You need PHP `7.0` or later +* You need WordPress `4.7` or later * You need a Cloudflare account (free plan is okay) * This plugin was not built by [Cloudflare, Inc](https://www.cloudflare.com/) @@ -91,7 +91,24 @@ If you know what `GitHub` is, use [GitHub issues](https://github.com/Typisttech/ = What version of PHP do I need? = -PHP 7 or later. +PHP `7.0` or later. + += What version of WordPress do I need? = + +PHP `4.7` or later. + += What to do when `Parse error: syntax error`? = + +If you encountered this error: + +`Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in wp-content/plugins/sunny/src/Sunny.php on line XX` + +You probably running on a old version of PHP. Upgrade your server to PHP `7.0` or later. + +Don't know how to update PHP? +* Contact you hosting company +* Switch to a better hosting such as [WP Engine](https://www.typist.tech/go/wp-engine-isnt-business-worth-29-month/) or [Kinsta](https://www.typist.tech/go/kinsta-staging-environment/) +* Hire me [https://www.typist.tech/contact](https://www.typist.tech/contact) = Is this plugin written by Cloudflare, Inc.? = @@ -150,6 +167,10 @@ Shoot me an email at [info@typist.tech](mailto:info@typist.tech) or use this [co Full change log available at [GitHub](https://github.com/typisttech/sunny/blob/master/CHANGELOG.md) += 2.0.1 = + +* Self deactivate if PHP version is older than `7.0.0` + = 2.0.0 = * Update to Cloudflare API v4 @@ -157,7 +178,8 @@ Full change log available at [GitHub](https://github.com/typisttech/sunny/blob/m == Upgrade Notice == -= 2.0.0 = += 2.0.1 = +* Sunny `2` requires PHP `7.0` or greater and WordPress `4.7` or greater * Security functionalities have been separated to [Sunny](https://wordpress.org/plugins/sunny/) * You have to re-enter Cloudflare settings. diff --git a/lib/wpupdatephp/wp-update-php/src/WPUpdatePhp.php b/lib/wpupdatephp/wp-update-php/src/WPUpdatePhp.php index 0a464a1..393d2d7 100755 --- a/lib/wpupdatephp/wp-update-php/src/WPUpdatePhp.php +++ b/lib/wpupdatephp/wp-update-php/src/WPUpdatePhp.php @@ -132,6 +132,11 @@ public function get_admin_notice( $level = 'minimum' ) { if ( ! empty( $this->plugin_name ) ) { $message = '
Unfortunately, ' . $this->plugin_name . '
cannot run on PHP versions older than ' . $this->minimum_version . '. Read more information about how you can update.
';
$message .= '' . $this->plugin_name . '
has deactivated itself to prevent fatal errors.
Don\'t know how to update PHP?
';
+ $message .= '* Contact you hosting company';
+ $message .= '* Switch to a better hosting such as WP Engine or Kinsta
';
+ $message .= '* Hire me https://www.typist.tech/contact
Unfortunately, this plugin cannot run on PHP versions older than ' . $this->minimum_version . '. Read more information about how you can update.
'; diff --git a/package.json b/package.json index 8503479..d23440e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sunny", - "version": "2.0.0", + "version": "2.0.1", "main": "Gruntfile.js", "private": true, "pot": { diff --git a/sunny.php b/sunny.php index 93fd658..055e79e 100644 --- a/sunny.php +++ b/sunny.php @@ -18,7 +18,7 @@ * Plugin Name: Sunny * Plugin URI: https://www.typist.tech/ * Description: Automatically purge CloudFlare cache, including cache everything rules. - * Version: 2.0.0 + * Version: 2.0.1 * Author: Typist Tech * Author URI: https://www.typist.tech/ * License: GPL-2.0+ diff --git a/yarn.lock b/yarn.lock index 947fc74..b783ae1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -281,9 +281,9 @@ gettext-parser@^1.2.0: dependencies: encoding "0.1.12" -glob@^7.0.5, glob@~7.0.0: - version "7.0.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" +glob@^7.0.5: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" @@ -302,6 +302,17 @@ glob@~5.0.0: once "^1.3.0" path-is-absolute "^1.0.0" +glob@~7.0.0: + version "7.0.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + graceful-fs@^4.1.2: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"