Google XML Sitemap Generator - Version 1.3.2

Version Description

Release Date: February 3rd, 2017

  • New : Warning if your website is hidden from search engines
  • New : Warning about permalink settings
  • Fix : Non escaped urls cause invalid sitemap
Download this release

Release Info

Developer XmlSitemapGenerator
Plugin Icon 128x128 Google XML Sitemap Generator
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

code/core.php CHANGED
@@ -69,7 +69,10 @@ class core {
69
  settings::addHooks();
70
  categoryMetaData::addHooks();
71
  postMetaData::addHooks();
72
-
 
 
 
73
  }
74
 
75
 
@@ -90,6 +93,31 @@ class core {
90
  }
91
 
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
  static function doPing()
95
  {
69
  settings::addHooks();
70
  categoryMetaData::addHooks();
71
  postMetaData::addHooks();
72
+
73
+ add_action('admin_notices', array(__CLASS__, 'showWarnings'));
74
+
75
+
76
  }
77
 
78
 
93
  }
94
 
95
  }
96
+
97
+ static function showWarnings()
98
+ {
99
+ $screen = get_current_screen();
100
+ if ($screen->base == 'settings_page_www-xml-sitemap-generator-org')
101
+ {
102
+ $warnings = "";
103
+ $blog_public = get_option('blog_public');
104
+ if ($blog_public == "0")
105
+ {
106
+ $warnings = '<p>Your website is hidden from search engines. Please check your <i>Search Engine Visibility in <a href="options-reading.php">Reading Settings</a></i>.</p>';
107
+ }
108
+
109
+ if (!get_option('permalink_structure'))
110
+ {
111
+ $warnings = $warnings . '<p>Permalinks are not enabled. Please check your <i><a href="options-permalink.php">Permalink Settings</a></i> are not set to <i>Plain</i>.</p>';
112
+ }
113
+
114
+ if ($warnings)
115
+ {
116
+ echo '<div id="sitemap-warnings" class="error fade"><p><strong>Problems that will prevent your sitemap working correctly :</strong></p>' . $warnings . '</div>';
117
+ }
118
+ }
119
+
120
+ }
121
 
122
  static function doPing()
123
  {
code/renderers.php CHANGED
@@ -35,9 +35,9 @@ namespace xmlSitemapGenerator;
35
  {
36
 
37
  echo '<item>' ;
38
- echo '<guid>' . $url->location . '</guid>';
39
  echo '<title>' . $url->title . '</title>';
40
- echo '<link>' . $url->location . '</link>';
41
  echo '<description>' . $url->description . '</description>';
42
  echo '<pubDate>' . date(DATE_RSS, $url->modified) . '</pubDate>';
43
  echo "</item>\n" ;
@@ -175,7 +175,7 @@ namespace xmlSitemapGenerator;
175
  {
176
 
177
  echo '<url>' ;
178
- echo '<loc>' . $url->location . '</loc>';
179
  echo '<lastmod>' . date('Y-m-d\TH:i:s+00:00', $url->modified) . '</lastmod>';
180
 
181
  if (!$url->frequency==0) {
@@ -230,7 +230,7 @@ namespace xmlSitemapGenerator;
230
  {
231
 
232
  echo '<li>' ;
233
- echo '<a href="' . $url->location . '">';
234
  echo $url->title;
235
  echo '</a>';
236
  echo "</li>\n" ;
35
  {
36
 
37
  echo '<item>' ;
38
+ echo '<guid>' . htmlspecialchars($url->location) . '</guid>';
39
  echo '<title>' . $url->title . '</title>';
40
+ echo '<link>' . htmlspecialchars($url->location) . '</link>';
41
  echo '<description>' . $url->description . '</description>';
42
  echo '<pubDate>' . date(DATE_RSS, $url->modified) . '</pubDate>';
43
  echo "</item>\n" ;
175
  {
176
 
177
  echo '<url>' ;
178
+ echo '<loc>' . htmlspecialchars($url->location) . '</loc>';
179
  echo '<lastmod>' . date('Y-m-d\TH:i:s+00:00', $url->modified) . '</lastmod>';
180
 
181
  if (!$url->frequency==0) {
230
  {
231
 
232
  echo '<li>' ;
233
+ echo '<a href="' . htmlspecialchars($url->location) . '">';
234
  echo $url->title;
235
  echo '</a>';
236
  echo "</li>\n" ;
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.7
7
- Stable tag: 1.3.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.
@@ -17,7 +17,7 @@ Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator
17
 
18
  * HTML, RSS and Google XML Sitemap formats.
19
  * List all your WordPress Pages, Posts, Archives, Authors, Categories and Tags.
20
- * Support for custom post types and taxonomy
21
  * Includes paged links for posts for Archives, Authors, Categories and Tags.
22
  * Set global sitemap default values for priorty and update frequencies.
23
  * Set sitemap value for priority and frequency at the category, tag, post and page level.
@@ -25,6 +25,7 @@ Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator
25
  * Add latest pages / posts RSS feed to page header.
26
  * Automatically adds sitemap entries to your robots.txt file.
27
  * Add custom entries to your robots.txt file.
 
28
 
29
  **New features**
30
 
@@ -55,6 +56,13 @@ Stay in touch via [facebook](https://www.facebook.com/XmlSitemapGenerator) and [
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
 
58
  = 1.3.1 =
59
  Release Date: January 26th, 2017
60
 
4
  Donate link: https://XmlSitemapGenerator.org/donate.aspx
5
  Requires at least: 4.0
6
  Tested up to: 4.7
7
+ Stable tag: 1.3.3
8
 
9
 
10
  Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator plugin. Compatible with Google, Bing, Baidu, Yandex and more.
17
 
18
  * HTML, RSS and Google XML Sitemap formats.
19
  * List all your WordPress Pages, Posts, Archives, Authors, Categories and Tags.
20
+ * Support for custom post types and taxonomy.
21
  * Includes paged links for posts for Archives, Authors, Categories and Tags.
22
  * Set global sitemap default values for priorty and update frequencies.
23
  * Set sitemap value for priority and frequency at the category, tag, post and page level.
25
  * Add latest pages / posts RSS feed to page header.
26
  * Automatically adds sitemap entries to your robots.txt file.
27
  * Add custom entries to your robots.txt file.
28
+ * Compatible with WooCommerce, bbPress, BuddyPress and more.
29
 
30
  **New features**
31
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.3.2 =
60
+ Release Date: February 3rd, 2017
61
+
62
+ * New : Warning if your website is hidden from search engines
63
+ * New : Warning about permalink settings
64
+ * Fix : Non escaped urls cause invalid sitemap
65
+
66
  = 1.3.1 =
67
  Release Date: January 26th, 2017
68
 
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.3.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.3.2
8
  Author: XmlSitemapGenerator.org
9
  Author URI: https://XmlSitemapGenerator.org
10
  License: GPL2