Nginx Helper - Version 1.8.3

Version Description

  • Tested with WordPress 4.0
  • Fix issue #69
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.3

Files changed (4) hide show
  1. admin/admin.php +3 -3
  2. nginx-helper.php +1 -1
  3. purger.php +2 -2
  4. readme.txt +10 -6
admin/admin.php CHANGED
@@ -37,14 +37,14 @@ namespace rtCamp\WP\Nginx {
37
  * Add setting sub-menu for single site
38
  */
39
  function add_menu() {
40
- add_submenu_page( 'options-general.php', __( 'Nginx Helper', 'nginx-helper' ), __( 'Nginx Helper', 'nginx-helper' ), 'install_plugins', 'nginx', array( &$this, 'nginx_create_admin_page' ) );
41
  }
42
 
43
  /**
44
  * Add setting sub-menu for multi site
45
  */
46
  function add_network_menu() {
47
- add_submenu_page( 'settings.php', __( 'Nginx Helper', 'nginx-helper' ), __( 'Nginx Helper', 'nginx-helper' ), 'install_plugins', 'nginx', array( &$this, 'nginx_create_admin_page' ) );
48
  }
49
 
50
  /**
@@ -138,4 +138,4 @@ namespace rtCamp\WP\Nginx {
138
  wp_localize_script( 'nginx-js', 'news_url', $admin_js );
139
  }
140
  }
141
- }
37
  * Add setting sub-menu for single site
38
  */
39
  function add_menu() {
40
+ add_submenu_page( 'options-general.php', __( 'Nginx Helper', 'nginx-helper' ), __( 'Nginx Helper', 'nginx-helper' ), 'manage_options', 'nginx', array( &$this, 'nginx_create_admin_page' ) );
41
  }
42
 
43
  /**
44
  * Add setting sub-menu for multi site
45
  */
46
  function add_network_menu() {
47
+ add_submenu_page( 'settings.php', __( 'Nginx Helper', 'nginx-helper' ), __( 'Nginx Helper', 'nginx-helper' ), 'manage_options', 'nginx', array( &$this, 'nginx_create_admin_page' ) );
48
  }
49
 
50
  /**
138
  wp_localize_script( 'nginx-js', 'news_url', $admin_js );
139
  }
140
  }
141
+ }
nginx-helper.php CHANGED
@@ -3,7 +3,7 @@
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.1
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Text Domain: nginx-helper
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
purger.php CHANGED
@@ -313,7 +313,7 @@ namespace rtCamp\WP\Nginx {
313
  $this->purgeUrl( wp_get_attachment_url( $attachment_id ), false );
314
  $attachment = wp_get_attachment_metadata( $attachment_id );
315
 
316
- if ( $attachment[ 'sizes' ] ) {
317
  foreach ( $attachment[ 'sizes' ] as $size_name => $size ) {
318
  $resize_image = wp_get_attachment_image_src( $attachment_id, $size_name );
319
  if ( $resize_image )
@@ -705,4 +705,4 @@ namespace rtCamp\WP\Nginx {
705
  return;
706
  }
707
  }
708
- }
313
  $this->purgeUrl( wp_get_attachment_url( $attachment_id ), false );
314
  $attachment = wp_get_attachment_metadata( $attachment_id );
315
 
316
+ if ( ! empty( $attachment[ 'sizes' ] ) && is_array( $attachment[ 'sizes' ] ) ) {
317
  foreach ( $attachment[ 'sizes' ] as $size_name => $size ) {
318
  $resize_image = wp_get_attachment_image_src( $attachment_id, $size_name );
319
  if ( $resize_image )
705
  return;
706
  }
707
  }
708
+ }
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Nginx ===
2
- Contributors: rtcamp, rahul286, saurabhshukla, faishal, 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: 3.9.1
6
- Stable tag: 1.8.1
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/
@@ -44,7 +44,7 @@ For proper configuration, check **tutorial list** of [Description tab](http://wo
44
 
45
  == Frequently Asked Questions ==
46
 
47
- **Important** - Please refer to [http://rtcamp.com/nginx-helper/faq](http://rtcamp.com/nginx-helper/faq) for uptodate FAQ's.
48
 
49
  = FAQ - Installation/Comptability =
50
 
@@ -116,6 +116,10 @@ Its just that we are hyperactive on our own forum!
116
 
117
  == Changelog ==
118
 
 
 
 
 
119
  = 1.8.1 =
120
  * Tested with wordpress 3.9.1
121
  * Fix confilct with Mailchimp's Social plugin
@@ -261,5 +265,5 @@ Its just that we are hyperactive on our own forum!
261
 
262
  == Upgrade Notice ==
263
 
264
- = 1.8 =
265
- New admin UI and Fix missing wp_sanitize_redirect function call
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/
44
 
45
  == Frequently Asked Questions ==
46
 
47
+ **Important** - Please refer to [http://rtcamp.com/nginx-helper/faq](http://rtcamp.com/nginx-helper/faq) for uptodate FAQ's.
48
 
49
  = FAQ - Installation/Comptability =
50
 
116
 
117
  == Changelog ==
118
 
119
+ = 1.8.3 =
120
+ * Tested with WordPress 4.0
121
+ * Fix issue #69
122
+
123
  = 1.8.1 =
124
  * Tested with wordpress 3.9.1
125
  * Fix confilct with Mailchimp's Social plugin
265
 
266
  == Upgrade Notice ==
267
 
268
+ = 1.8.3 =
269
+ Tested with WordPress 4.0, Fix issue #69