Version Description
Release Date: September 2nd, 2015
- Fix : invalid sitemap due to default value
Download this release
Release Info
Developer | XmlSitemapGenerator |
Plugin | Google XML Sitemap Generator |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- code/renderers.php +7 -2
- code/sitemapBuilder.php +9 -7
- readme.txt +6 -1
- www-xml-sitemap-generator-org.php +1 -1
code/renderers.php
CHANGED
@@ -93,6 +93,9 @@ namespace xmlSitemapGenerator;
|
|
93 |
{
|
94 |
switch ($value) {
|
95 |
case 0:
|
|
|
|
|
|
|
96 |
return "default";
|
97 |
break;
|
98 |
case 2:
|
@@ -113,6 +116,8 @@ namespace xmlSitemapGenerator;
|
|
113 |
case 7:
|
114 |
return "always";
|
115 |
break;
|
|
|
|
|
116 |
}
|
117 |
}
|
118 |
|
@@ -120,7 +125,7 @@ namespace xmlSitemapGenerator;
|
|
120 |
{
|
121 |
switch ($value) {
|
122 |
case 0:
|
123 |
-
return "
|
124 |
break;
|
125 |
case 1:
|
126 |
return "default";
|
@@ -158,7 +163,7 @@ namespace xmlSitemapGenerator;
|
|
158 |
case 12:
|
159 |
return "1.0";
|
160 |
break;
|
161 |
-
|
162 |
return "xxx";
|
163 |
}
|
164 |
}
|
93 |
{
|
94 |
switch ($value) {
|
95 |
case 0:
|
96 |
+
return "";
|
97 |
+
break;
|
98 |
+
case 1:
|
99 |
return "default";
|
100 |
break;
|
101 |
case 2:
|
116 |
case 7:
|
117 |
return "always";
|
118 |
break;
|
119 |
+
default:
|
120 |
+
return "xxx";
|
121 |
}
|
122 |
}
|
123 |
|
125 |
{
|
126 |
switch ($value) {
|
127 |
case 0:
|
128 |
+
return "";
|
129 |
break;
|
130 |
case 1:
|
131 |
return "default";
|
163 |
case 12:
|
164 |
return "1.0";
|
165 |
break;
|
166 |
+
default:
|
167 |
return "xxx";
|
168 |
}
|
169 |
}
|
code/sitemapBuilder.php
CHANGED
@@ -146,16 +146,16 @@ include_once 'renderers.php';
|
|
146 |
if (isset($postValue))
|
147 |
{
|
148 |
|
149 |
-
if ( $postValue
|
150 |
}
|
151 |
-
|
152 |
-
|
153 |
-
if ( $tagValue !== 1) {return $tagValue; }
|
154 |
-
}
|
155 |
-
else
|
156 |
{
|
157 |
-
|
158 |
}
|
|
|
|
|
|
|
159 |
|
160 |
}
|
161 |
|
@@ -396,6 +396,7 @@ include_once 'renderers.php';
|
|
396 |
|
397 |
function getAllUrls()
|
398 |
{
|
|
|
399 |
$settings = get_option( "wpXSG_sitemapDefaults" , new sitemapDefaults() );
|
400 |
|
401 |
$this->addHomePage($settings);
|
@@ -432,6 +433,7 @@ include_once 'renderers.php';
|
|
432 |
$this->getAllUrls();
|
433 |
}
|
434 |
|
|
|
435 |
$renderer = sitemapRenderer::getInstance($sitemapType);
|
436 |
|
437 |
|
146 |
if (isset($postValue))
|
147 |
{
|
148 |
|
149 |
+
if ( $postValue != 1) { return $postValue; }
|
150 |
}
|
151 |
+
|
152 |
+
if (isset($tagValue))
|
|
|
|
|
|
|
153 |
{
|
154 |
+
if ( $tagValue != 1) {return $tagValue; }
|
155 |
}
|
156 |
+
|
157 |
+
return $default;
|
158 |
+
|
159 |
|
160 |
}
|
161 |
|
396 |
|
397 |
function getAllUrls()
|
398 |
{
|
399 |
+
|
400 |
$settings = get_option( "wpXSG_sitemapDefaults" , new sitemapDefaults() );
|
401 |
|
402 |
$this->addHomePage($settings);
|
433 |
$this->getAllUrls();
|
434 |
}
|
435 |
|
436 |
+
|
437 |
$renderer = sitemapRenderer::getInstance($sitemapType);
|
438 |
|
439 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: title, xml, rss, sitemap, yandex, metaboxes, google, bing, yahoo, baidu
|
|
4 |
Donate link: https://XmlSitemapGenerator.org/donate.aspx
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
|
10 |
Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator plugin. Compatible with Google, Bing, Baidu, Yandex and more.
|
@@ -51,6 +51,11 @@ Stay in touch via [facebook](https://www.facebook.com/XmlSitemapGenerator) and [
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
= 1.1 =
|
55 |
Release Date: July 27nd, 2015
|
56 |
|
4 |
Donate link: https://XmlSitemapGenerator.org/donate.aspx
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.2
|
8 |
|
9 |
|
10 |
Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator plugin. Compatible with Google, Bing, Baidu, Yandex and more.
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 1.2 =
|
55 |
+
Release Date: September 2nd, 2015
|
56 |
+
|
57 |
+
* Fix : invalid sitemap due to default value
|
58 |
+
|
59 |
= 1.1 =
|
60 |
Release Date: July 27nd, 2015
|
61 |
|
www-xml-sitemap-generator-org.php
CHANGED
@@ -4,7 +4,7 @@ namespace xmlSitemapGenerator;
|
|
4 |
Plugin Name: Google XML Sitemap Generator
|
5 |
Plugin URI: https://XmlSitemapGenerator.org
|
6 |
Description: HTML, RSS and Google XML Sitemap generator compatible with Google, Bing, Baidu, Yandex and more.
|
7 |
-
Version: 1.
|
8 |
Author: XmlSitemapGenerator.org
|
9 |
Author URI: https://XmlSitemapGenerator.org
|
10 |
License: GPL2
|
4 |
Plugin Name: Google XML Sitemap Generator
|
5 |
Plugin URI: https://XmlSitemapGenerator.org
|
6 |
Description: HTML, RSS and Google XML Sitemap generator compatible with Google, Bing, Baidu, Yandex and more.
|
7 |
+
Version: 1.2
|
8 |
Author: XmlSitemapGenerator.org
|
9 |
Author URI: https://XmlSitemapGenerator.org
|
10 |
License: GPL2
|