Version Description
- Fixed duplicate entries.
Download this release
Release Info
Developer | saurabhshukla |
Plugin | Nginx Helper |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- nginx-helper.php +6 -15
- readme.txt +6 -3
nginx-helper.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
@@ -214,28 +214,19 @@ namespace rtCamp\WP\Nginx {
|
|
214 |
if ( $rt_all_blogs )
|
215 |
foreach ( $rt_all_blogs as $blog ){
|
216 |
if ( SUBDOMAIN_INSTALL == "yes" )
|
217 |
-
$rt_nginx_map_array[] =
|
218 |
-
'domain'=>$blog->domain,
|
219 |
-
'id' => $blog->blog_id
|
220 |
-
);
|
221 |
}else{
|
222 |
if ( $blog->blog_id != 1 )
|
223 |
-
$rt_nginx_map_array[] =
|
224 |
-
'domain'=>$blog->path,
|
225 |
-
'id' => $blog->blog_id
|
226 |
-
);
|
227 |
}
|
228 |
|
229 |
if ( $rt_domain_map_sites )
|
230 |
foreach ( $rt_domain_map_sites as $site )
|
231 |
-
$rt_nginx_map_array[] =
|
232 |
-
'domain'=> $site->domain,
|
233 |
-
'id' => $site->blog_id
|
234 |
-
);
|
235 |
|
236 |
|
237 |
-
foreach ( $rt_nginx_map_array as $
|
238 |
-
$rt_nginx_map .= "\t" . $
|
239 |
|
240 |
return $rt_nginx_map;
|
241 |
}
|
3 |
Plugin Name: Nginx Helper
|
4 |
Plugin URI: http://rtcamp.com/
|
5 |
Description: An nginx helper that serves various functions.
|
6 |
+
Version: 1.6.3
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
214 |
if ( $rt_all_blogs )
|
215 |
foreach ( $rt_all_blogs as $blog ){
|
216 |
if ( SUBDOMAIN_INSTALL == "yes" )
|
217 |
+
$rt_nginx_map_array[$blog->domain] = $blog->blog_id;
|
|
|
|
|
|
|
218 |
}else{
|
219 |
if ( $blog->blog_id != 1 )
|
220 |
+
$rt_nginx_map_array[$blog->path] = $blog->blog_id;
|
|
|
|
|
|
|
221 |
}
|
222 |
|
223 |
if ( $rt_domain_map_sites )
|
224 |
foreach ( $rt_domain_map_sites as $site )
|
225 |
+
$rt_nginx_map_array[$site->domain] = $site->blog_id;
|
|
|
|
|
|
|
226 |
|
227 |
|
228 |
+
foreach ( $rt_nginx_map_array as $domain=>$domain_id )
|
229 |
+
$rt_nginx_map .= "\t" . $domain . "\t" . $domain_id . ";\n";
|
230 |
|
231 |
return $rt_nginx_map;
|
232 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: rtcamp, rahul286, saurabhshukla
|
|
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 |
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,6 +105,9 @@ Its just that we are hyperactive on our own forum!
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 1.6.2 =
|
109 |
* Another bug fix in the revised code for improved multisite and multidomain mapping.
|
110 |
|
@@ -182,5 +185,5 @@ Its just that we are hyperactive on our own forum!
|
|
182 |
|
183 |
== Upgrade Notice ==
|
184 |
|
185 |
-
= 1.6.
|
186 |
-
|
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.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/
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.6.3 =
|
109 |
+
* Fixed duplicate entries.
|
110 |
+
|
111 |
= 1.6.2 =
|
112 |
* Another bug fix in the revised code for improved multisite and multidomain mapping.
|
113 |
|
185 |
|
186 |
== Upgrade Notice ==
|
187 |
|
188 |
+
= 1.6.3 =
|
189 |
+
Revised multisite map support.
|