From 5994f8601d7cb7de576d16cba06d0123c24c6533 Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Thu, 29 Nov 2018 10:45:07 +0530 Subject: [PATCH 1/3] Fix php error with arbitrary statement in empty --- admin/class-nginx-helper-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/class-nginx-helper-admin.php b/admin/class-nginx-helper-admin.php index 4735ab1e..850ea3b3 100644 --- a/admin/class-nginx-helper-admin.php +++ b/admin/class-nginx-helper-admin.php @@ -602,7 +602,7 @@ public function unset_future_post_option_on_delete( $post_id ) { ! $this->options['enable_purge'] || empty( $this->options['future_posts'] ) || empty( $this->options['future_posts'][ $blog_id ] ) || - empty( isset( $this->options['future_posts'][ $blog_id ][ $post_id ] ) ) || + isset( $this->options['future_posts'][ $blog_id ][ $post_id ] ) || wp_is_post_revision( $post_id ) ) { return; From 9cdffc1a28d534863f49b195b575b24e03f2b13f Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Thu, 29 Nov 2018 10:54:49 +0530 Subject: [PATCH 2/3] Add changelog; bump version to 2.0.1 --- README.md | 5 ++++- includes/class-nginx-helper.php | 4 ++-- nginx-helper.php | 2 +- readme.txt | 5 ++++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2e9dcf56..5aa823e3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ **Tested up to:** 4.9.8 -**Stable tag:** 2.0.0 +**Stable tag:** 2.0.1 **License:** GPLv2 or later (of-course) @@ -140,6 +140,9 @@ Please post your problem in [our free support forum](http://community.rtcamp.com ## Changelog ## +### 2.0.1 ### +* Fix php error with arbitrary statement in empty - Prior to PHP 5.5 + ### 2.0.0 ### * Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi) * Refactor Plugin structure and remove unused code. Initial code by [chandrapatel](https://github.com/chandrapatel), [#153](https://github.com/rtCamp/nginx-helper/pull/153) - by [kelin1003](https://github.com/kelin1003), diff --git a/includes/class-nginx-helper.php b/includes/class-nginx-helper.php index af3f41d9..28ce4bb1 100644 --- a/includes/class-nginx-helper.php +++ b/includes/class-nginx-helper.php @@ -77,7 +77,7 @@ class Nginx_Helper { public function __construct() { $this->plugin_name = 'nginx-helper'; - $this->version = '2.0.0'; + $this->version = '2.0.1'; $this->minimum_WP = '3.0'; if ( ! $this->required_wp_version() ) { @@ -299,7 +299,7 @@ public function required_wp_version() { * Dispay plugin notices. */ public function display_notices() { - ?> + ?>

diff --git a/nginx-helper.php b/nginx-helper.php index 4fe88e11..e226feaa 100644 --- a/nginx-helper.php +++ b/nginx-helper.php @@ -3,7 +3,7 @@ * Plugin Name: Nginx Helper * Plugin URI: https://rtcamp.com/nginx-helper/ * Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things. - * Version: 2.0.0 + * Version: 2.0.1 * Author: rtCamp * Author URI: https://rtcamp.com * Text Domain: nginx-helper diff --git a/readme.txt b/readme.txt index 4aa06176..b6c3f02c 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ License: GPLv2 or later (of-course) License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires at least: 3.0 Tested up to: 4.9.8 -Stable tag: 2.0.0 +Stable tag: 2.0.1 Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things. @@ -127,6 +127,9 @@ Please post your problem in [our free support forum](http://community.rtcamp.com == Changelog == += 2.0.1 = +* Fix php error with arbitrary statement in empty - Prior to PHP 5.5 + = 2.0.0 = * Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi) * Refactor Plugin structure and remove unused code. Initial code by [chandrapatel](https://github.com/chandrapatel), [#153](https://github.com/rtCamp/nginx-helper/pull/153) - by [jinschoi](https://github.com/kelin1003), From a337d8b4b73207a56693b3d33ed46a6135d7ae9b Mon Sep 17 00:00:00 2001 From: Rahul Prajapati Date: Thu, 29 Nov 2018 12:27:45 +0530 Subject: [PATCH 3/3] Update change log for v2.0.1 --- README.md | 5 +++-- readme.txt | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5aa823e3..d268cb1d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Nginx Helper # -**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati +**Contributors:** rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel **Tags:** nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks @@ -141,7 +141,8 @@ Please post your problem in [our free support forum](http://community.rtcamp.com ## Changelog ## ### 2.0.1 ### -* Fix php error with arbitrary statement in empty - Prior to PHP 5.5 +* Fix settings url for multisite: use network_admin_url to get network correct settings url. [#163](https://github.com/rtCamp/nginx-helper/pull/163) - by [Joel-James](https://github.com/Joel-James) +* Fix php error with arbitrary statement in empty - Prior to PHP 5.5. [#165](https://github.com/rtCamp/nginx-helper/pull/165) - by [PatelUtkarsh](https://github.com/PatelUtkarsh) ### 2.0.0 ### * Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi) diff --git a/readme.txt b/readme.txt index b6c3f02c..dcdac4cb 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ === Nginx Helper === -Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati +Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel Donate Link: http://rtcamp.com/donate/ Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks License: GPLv2 or later (of-course) @@ -128,7 +128,8 @@ Please post your problem in [our free support forum](http://community.rtcamp.com == Changelog == = 2.0.1 = -* Fix php error with arbitrary statement in empty - Prior to PHP 5.5 +* Fix settings url for multisite: use network_admin_url to get network correct settings url. [#163](https://github.com/rtCamp/nginx-helper/pull/163) - by [Joel-James](https://github.com/Joel-James) +* Fix php error with arbitrary statement in empty - Prior to PHP 5.5. [#165](https://github.com/rtCamp/nginx-helper/pull/165) - by [PatelUtkarsh](https://github.com/PatelUtkarsh) = 2.0.0 = * Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi)