Nginx Helper - Version 1.8.4

Version Description

  • Fix undefined index issue and correct "purge_archive_on_del" key
Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 Nginx Helper
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

Files changed (3) hide show
  1. nginx-helper.php +3 -3
  2. purger.php +1 -1
  3. readme.txt +7 -4
nginx-helper.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/nginx-helper/
5
  Description: An nginx helper that serves various functions.
6
- Version: 1.8.3
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Text Domain: nginx-helper
10
  Requires at least: 3.0
11
- Tested up to: 3.9.1
12
  */
13
 
14
  namespace rtCamp\WP\Nginx {
@@ -116,7 +116,7 @@ namespace rtCamp\WP\Nginx {
116
  }
117
 
118
  if ($new_status == 'future') {
119
- if ($post && $post->post_status == 'future' && ( ( $post->post_type == 'post' || $post->post_type == 'page' ) || ( in_array($post->post_type, $this->options['custom_post_types_recognized']) ) )) {
120
  $rt_wp_nginx_purger->log("Set/update future_posts option (post id = " . $post->ID . " and blog id = " . $blog_id . ")");
121
  $this->options['future_posts'][$blog_id][$post->ID] = strtotime($post->post_date_gmt) + 60;
122
  update_site_option("rt_wp_nginx_helper_global_options", $this->options);
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/nginx-helper/
5
  Description: An nginx helper that serves various functions.
6
+ Version: 1.8.4
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Text Domain: nginx-helper
10
  Requires at least: 3.0
11
+ Tested up to: 4.0
12
  */
13
 
14
  namespace rtCamp\WP\Nginx {
116
  }
117
 
118
  if ($new_status == 'future') {
119
+ if ($post && $post->post_status == 'future' && ( ( $post->post_type == 'post' || $post->post_type == 'page' ) || ( isset( $this->options['custom_post_types_recognized'] ) && in_array($post->post_type, $this->options['custom_post_types_recognized']) ) )) {
120
  $rt_wp_nginx_purger->log("Set/update future_posts option (post id = " . $post->ID . " and blog id = " . $blog_id . ")");
121
  $this->options['future_posts'][$blog_id][$post->ID] = strtotime($post->post_date_gmt) + 60;
122
  update_site_option("rt_wp_nginx_helper_global_options", $this->options);
purger.php CHANGED
@@ -349,7 +349,7 @@ namespace rtCamp\WP\Nginx {
349
  }
350
 
351
 
352
- $this->_purge_by_options( $post->ID, $blog_id, false, $rt_wp_nginx_helper->options[ 'purge_archive_on_delete' ], $rt_wp_nginx_helper->options[ 'purge_archive_on_delete' ] );
353
 
354
 
355
 
349
  }
350
 
351
 
352
+ $this->_purge_by_options( $post->ID, $blog_id, false, $rt_wp_nginx_helper->options[ 'purge_archive_on_del' ], $rt_wp_nginx_helper->options[ 'purge_archive_on_del' ] );
353
 
354
 
355
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Nginx ===
2
- Contributors: rtcamp, rahul286, saurabhshukla, faishal, desaiuditd, Darren Slatten, jk3us, daankortenbach, telofy, pjv, llonchj, manishsongirkar36,jinnko,weskoop
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 4.0
6
- Stable tag: 1.8.3
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
@@ -116,6 +116,9 @@ Its just that we are hyperactive on our own forum!
116
 
117
  == Changelog ==
118
 
 
 
 
119
  = 1.8.3 =
120
  * Tested with WordPress 4.0
121
  * Fix issue #69
@@ -265,5 +268,5 @@ Its just that we are hyperactive on our own forum!
265
 
266
  == Upgrade Notice ==
267
 
268
- = 1.8.3 =
269
- Tested with WordPress 4.0, Fix issue #69
1
  === Nginx ===
2
+ Contributors: rtcamp, rahul286, saurabhshukla, faishal, desaiuditd, rittesh.patel, Darren Slatten, jk3us, daankortenbach, telofy, pjv, llonchj, manishsongirkar36,jinnko,weskoop
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 4.0
6
+ Stable tag: 1.8.4
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
116
 
117
  == Changelog ==
118
 
119
+ = 1.8.4 =
120
+ * Fix undefined index issue and correct "purge_archive_on_del" key
121
+
122
  = 1.8.3 =
123
  * Tested with WordPress 4.0
124
  * Fix issue #69
268
 
269
  == Upgrade Notice ==
270
 
271
+ = 1.8.4 =
272
+ Fix undefined index issue and correct "purge_archive_on_del" key