Version Description
Release Date: December 16th, 2015
- Fix : Duplicate homepage when using a static page
Download this release
Release Info
Developer | XmlSitemapGenerator |
Plugin | Google XML Sitemap Generator |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- code/dataAccess.php +3 -2
- readme.txt +7 -2
- www-xml-sitemap-generator-org.php +1 -1
code/dataAccess.php
CHANGED
@@ -102,7 +102,8 @@ class dataAccess {
|
|
102 |
{
|
103 |
global $wpdb;
|
104 |
$date = self::getDateField($date);
|
105 |
-
|
|
|
106 |
$tablemeta = $wpdb->prefix . 'xsg_sitemap_meta';
|
107 |
|
108 |
$cmd = "SELECT
|
@@ -125,7 +126,7 @@ class dataAccess {
|
|
125 |
) as Tag_meta
|
126 |
ON posts.Id = Tag_meta.Post_id
|
127 |
WHERE post_status = 'publish' AND (post_type = 'page' OR post_type = 'post')
|
128 |
-
AND posts.post_password = ''
|
129 |
ORDER BY {$date} DESC ";
|
130 |
|
131 |
|
102 |
{
|
103 |
global $wpdb;
|
104 |
$date = self::getDateField($date);
|
105 |
+
$frontPageId = get_option( 'page_on_front' );
|
106 |
+
|
107 |
$tablemeta = $wpdb->prefix . 'xsg_sitemap_meta';
|
108 |
|
109 |
$cmd = "SELECT
|
126 |
) as Tag_meta
|
127 |
ON posts.Id = Tag_meta.Post_id
|
128 |
WHERE post_status = 'publish' AND (post_type = 'page' OR post_type = 'post')
|
129 |
+
AND posts.post_password = '' AND posts.ID <> {$frontPageId}
|
130 |
ORDER BY {$date} DESC ";
|
131 |
|
132 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: XmlSitemapGenerator
|
|
3 |
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 |
-
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,6 +51,11 @@ Stay in touch via [facebook](https://www.facebook.com/XmlSitemapGenerator) and [
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
= 1.2.1 =
|
55 |
Release Date: September 23rd, 2015
|
56 |
|
3 |
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.4
|
7 |
+
Stable tag: 1.2.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.2 =
|
55 |
+
Release Date: December 16th, 2015
|
56 |
+
|
57 |
+
* Fix : Duplicate homepage when using a static page
|
58 |
+
|
59 |
= 1.2.1 =
|
60 |
Release Date: September 23rd, 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.2.
|
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.2
|
8 |
Author: XmlSitemapGenerator.org
|
9 |
Author URI: https://XmlSitemapGenerator.org
|
10 |
License: GPL2
|