Skip to content

Commit 74a627f

Browse files
Merge pull request #165 from rtCamp/fix/php-error
Fix php error with arbitrary statement in empty
2 parents e0ecd9b + a337d8b commit 74a627f

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Nginx Helper #
2-
**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
2+
**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
33

44
**Tags:** nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
55

66
**Requires at least:** 3.0
77

88
**Tested up to:** 4.9.8
99

10-
**Stable tag:** 2.0.0
10+
**Stable tag:** 2.0.1
1111

1212
**License:** GPLv2 or later (of-course)
1313

@@ -140,6 +140,10 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
140140

141141
## Changelog ##
142142

143+
### 2.0.1 ###
144+
* 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)
145+
* 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)
146+
143147
### 2.0.0 ###
144148
* Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi)
145149
* 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),

admin/class-nginx-helper-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public function unset_future_post_option_on_delete( $post_id ) {
602602
! $this->options['enable_purge'] ||
603603
empty( $this->options['future_posts'] ) ||
604604
empty( $this->options['future_posts'][ $blog_id ] ) ||
605-
empty( isset( $this->options['future_posts'][ $blog_id ][ $post_id ] ) ) ||
605+
isset( $this->options['future_posts'][ $blog_id ][ $post_id ] ) ||
606606
wp_is_post_revision( $post_id )
607607
) {
608608
return;

includes/class-nginx-helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Nginx_Helper {
7777
public function __construct() {
7878

7979
$this->plugin_name = 'nginx-helper';
80-
$this->version = '2.0.0';
80+
$this->version = '2.0.1';
8181
$this->minimum_WP = '3.0';
8282

8383
if ( ! $this->required_wp_version() ) {
@@ -299,7 +299,7 @@ public function required_wp_version() {
299299
* Dispay plugin notices.
300300
*/
301301
public function display_notices() {
302-
?>
302+
?>
303303
<div id="message" class="error">
304304
<p>
305305
<strong>

nginx-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Nginx Helper
44
* Plugin URI: https://rtcamp.com/nginx-helper/
55
* Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things.
6-
* Version: 2.0.0
6+
* Version: 2.0.1
77
* Author: rtCamp
88
* Author URI: https://rtcamp.com
99
* Text Domain: nginx-helper

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
=== Nginx Helper ===
2-
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
2+
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
33
Donate Link: http://rtcamp.com/donate/
44
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
55
License: GPLv2 or later (of-course)
66
License URI: http://www.gnu.org/licenses/gpl-2.0.html
77
Requires at least: 3.0
88
Tested up to: 4.9.8
9-
Stable tag: 2.0.0
9+
Stable tag: 2.0.1
1010

1111
Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
1212

@@ -127,6 +127,10 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
127127

128128
== Changelog ==
129129

130+
= 2.0.1 =
131+
* 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)
132+
* 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)
133+
130134
= 2.0.0 =
131135
* Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi)
132136
* 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),

0 commit comments

Comments
 (0)