Nginx Helper - Version 1.6.8

Version Description

  • daankortenbach added Purge Cache link to wp-admin bar
Download this release

Release Info

Developer saurabhshukla
Plugin Icon 128x128 Nginx Helper
Version 1.6.8
Comparing to
See all releases

Code changes from version 1.6.7 to 1.6.8

admin/admin.php CHANGED
@@ -12,6 +12,7 @@ namespace rtCamp\WP\Nginx {
12
  }
13
  add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
14
  add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );
 
15
  }
16
 
17
  function add_menu() {
@@ -283,6 +284,20 @@ namespace rtCamp\WP\Nginx {
283
  }
284
  }
285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  function default_admin_sidebar() {
287
  ?>
288
  <div class="postbox" id="support">
12
  }
13
  add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
14
  add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );
15
+ add_action( 'admin_bar_menu', array( &$this, 'add_toolbar_purge_item' ), 100 );
16
  }
17
 
18
  function add_menu() {
284
  }
285
  }
286
 
287
+ function add_toolbar_purge_item( $admin_bar ) {
288
+ $purge_url = add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) );
289
+ $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' );
290
+ $admin_bar->add_menu( array(
291
+ 'id' => 'nginx-helper-purge-all',
292
+ 'title' => __( 'Purge Cache', 'rt-nginx' ),
293
+ 'href' => $nonced_url,
294
+ 'meta' => array(
295
+ 'title' => __( 'Purge Cache', 'rt-nginx' ),
296
+ ),
297
+ )
298
+ );
299
+ }
300
+
301
  function default_admin_sidebar() {
302
  ?>
303
  <div class="postbox" id="support">
nginx-helper.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
- Version: 1.6.7
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
10
- Tested up to: 3.4.2
11
  */
12
 
13
  namespace rtCamp\WP\Nginx {
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
+ Version: 1.6.8
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
10
+ Tested up to: 3.5
11
  */
12
 
13
  namespace rtCamp\WP\Nginx {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Nginx ===
2
- Contributors: rtcamp, rahul286, saurabhshukla, Darren Slatten, jk3us
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.4.2
6
- Stable tag: 1.6.7
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/
@@ -105,11 +105,14 @@ Its just that we are hyperactive on our own forum!
105
 
106
  == Changelog ==
107
 
 
 
 
108
  = 1.6.7 =
109
- * Better content-type detection for cache verification comments (by [jk3us](http://profiles.wordpress.org/jk3us)
110
 
111
  = 1.6.6 =
112
- * Added Manual 'Purge all URLs' functionality (by [darren-slatten](http://profiles.wordpress.org/darren-slatten/))
113
 
114
  = 1.6.5 =
115
  * Fixed typo that interfered with archive purge settings. Thanks to [Daan Kortenbach](http://profiles.wordpress.org/daankortenbach/) for pointing this out.
@@ -199,4 +202,4 @@ Its just that we are hyperactive on our own forum!
199
  == Upgrade Notice ==
200
 
201
  = 1.6.7 =
202
- Improved cache verification comments.
1
  === Nginx ===
2
+ Contributors: rtcamp, rahul286, saurabhshukla, Darren Slatten, jk3us, daankortenbach
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.5
6
+ Stable tag: 1.6.8
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/
105
 
106
  == Changelog ==
107
 
108
+ = 1.6.8 =
109
+ * [daankortenbach](http://profiles.wordpress.org/daankortenbach) added Purge Cache link to wp-admin bar
110
+
111
  = 1.6.7 =
112
+ * [jk3us](http://profiles.wordpress.org/jk3us) added better content-type detection for cache verification comments
113
 
114
  = 1.6.6 =
115
+ * [darren-slatten](http://profiles.wordpress.org/darren-slatten/) added Manual 'Purge all URLs' functionality
116
 
117
  = 1.6.5 =
118
  * Fixed typo that interfered with archive purge settings. Thanks to [Daan Kortenbach](http://profiles.wordpress.org/daankortenbach/) for pointing this out.
202
  == Upgrade Notice ==
203
 
204
  = 1.6.7 =
205
+ Improved cache verification comments.
trunk/admin/admin.php CHANGED
@@ -12,6 +12,7 @@ namespace rtCamp\WP\Nginx {
12
  }
13
  add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
14
  add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );
 
15
  }
16
 
17
  function add_menu() {
@@ -283,6 +284,20 @@ namespace rtCamp\WP\Nginx {
283
  }
284
  }
285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  function default_admin_sidebar() {
287
  ?>
288
  <div class="postbox" id="support">
12
  }
13
  add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
14
  add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );
15
+ add_action( 'admin_bar_menu', array( &$this, 'add_toolbar_purge_item' ), 100 );
16
  }
17
 
18
  function add_menu() {
284
  }
285
  }
286
 
287
+ function add_toolbar_purge_item( $admin_bar ) {
288
+ $purge_url = add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) );
289
+ $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' );
290
+ $admin_bar->add_menu( array(
291
+ 'id' => 'nginx-helper-purge-all',
292
+ 'title' => __( 'Purge Cache', 'rt-nginx' ),
293
+ 'href' => $nonced_url,
294
+ 'meta' => array(
295
+ 'title' => __( 'Purge Cache', 'rt-nginx' ),
296
+ ),
297
+ )
298
+ );
299
+ }
300
+
301
  function default_admin_sidebar() {
302
  ?>
303
  <div class="postbox" id="support">
trunk/nginx-helper.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
- Version: 1.6.7
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
10
- Tested up to: 3.4.2
11
  */
12
 
13
  namespace rtCamp\WP\Nginx {
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
+ Version: 1.6.8
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
10
+ Tested up to: 3.5
11
  */
12
 
13
  namespace rtCamp\WP\Nginx {
trunk/readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Nginx ===
2
- Contributors: rtcamp, rahul286, saurabhshukla, Darren-Slatten, jk3us
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.4.2
6
- Stable tag: 1.6.7
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/
@@ -105,11 +105,14 @@ Its just that we are hyperactive on our own forum!
105
 
106
  == Changelog ==
107
 
 
 
 
108
  = 1.6.7 =
109
- * Better content-type detection for cache verification comments (by [jk3us](http://profiles.wordpress.org/jk3us)
110
 
111
  = 1.6.6 =
112
- * Added Manual 'Purge all URLs' functionality (by [darren-slatten](http://profiles.wordpress.org/darren-slatten/))
113
 
114
  = 1.6.5 =
115
  * Fixed typo that interfered with archive purge settings. Thanks to [Daan Kortenbach](http://profiles.wordpress.org/daankortenbach/) for pointing this out.
@@ -198,5 +201,5 @@ Its just that we are hyperactive on our own forum!
198
 
199
  == Upgrade Notice ==
200
 
201
- = 1.6.7 =
202
- Improved cache verification comments.
1
  === Nginx ===
2
+ Contributors: rtcamp, rahul286, saurabhshukla, Darren Slatten, jk3us, daankortenbach
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.5
6
+ Stable tag: 1.6.8
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/
105
 
106
  == Changelog ==
107
 
108
+ = 1.6.8 =
109
+ * [daankortenbach](http://profiles.wordpress.org/daankortenbach) added Purge Cache link to wp-admin bar
110
+
111
  = 1.6.7 =
112
+ * [jk3us](http://profiles.wordpress.org/jk3us) added better content-type detection for cache verification comments
113
 
114
  = 1.6.6 =
115
+ * [darren-slatten](http://profiles.wordpress.org/darren-slatten/) added Manual 'Purge all URLs' functionality
116
 
117
  = 1.6.5 =
118
  * Fixed typo that interfered with archive purge settings. Thanks to [Daan Kortenbach](http://profiles.wordpress.org/daankortenbach/) for pointing this out.
201
 
202
  == Upgrade Notice ==
203
 
204
+ = 1.6.8 =
205
+ Added purge cache to admin bar.