Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix php error with arbitrary statement in empty #165

Merged
merged 4 commits into from Nov 29, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -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)

Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion admin/class-nginx-helper-admin.php
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions includes/class-nginx-helper.php
Expand Up @@ -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() ) {
Expand Down Expand Up @@ -299,7 +299,7 @@ public function required_wp_version() {
* Dispay plugin notices.
*/
public function display_notices() {
?>
?>
<div id="message" class="error">
<p>
<strong>
Expand Down
2 changes: 1 addition & 1 deletion nginx-helper.php
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -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.

Expand Down Expand Up @@ -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),
Expand Down