Version Description
Release Date: January 26th, 2017
- Fix : Custom taxonomy, tags & categories not displaying
Download this release
Release Info
Developer | XmlSitemapGenerator |
Plugin | Google XML Sitemap Generator |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- assets/Screenshot-1.jpg +0 -0
- assets/Screenshot-2.jpg +0 -0
- assets/Screenshot-3.jpg +0 -0
- assets/Screenshot-4.jpg +0 -0
- assets/Screenshot-5.jpg +0 -0
- assets/banner-1544x500.jpg +0 -0
- assets/banner-772x250.jpg +0 -0
- assets/icon-128x128.jpg +0 -0
- assets/icon-256x256.jpg +0 -0
- code/core.php +15 -4
- code/dataAccess.php +12 -6
- readme.txt +6 -1
- www-xml-sitemap-generator-org.php +1 -1
assets/Screenshot-1.jpg
ADDED
Binary file
|
assets/Screenshot-2.jpg
ADDED
Binary file
|
assets/Screenshot-3.jpg
ADDED
Binary file
|
assets/Screenshot-4.jpg
ADDED
Binary file
|
assets/Screenshot-5.jpg
ADDED
Binary file
|
assets/banner-1544x500.jpg
ADDED
Binary file
|
assets/banner-772x250.jpg
ADDED
Binary file
|
assets/icon-128x128.jpg
ADDED
Binary file
|
assets/icon-256x256.jpg
ADDED
Binary file
|
code/core.php
CHANGED
@@ -4,7 +4,7 @@ namespace xmlSitemapGenerator;
|
|
4 |
|
5 |
include_once 'settingsModels.php';
|
6 |
include_once 'upgrader.php';
|
7 |
-
|
8 |
define ( "XSG_PLUGIN_VERSION" , "1.3.0");
|
9 |
define ( "XSG_PLUGIN_NAME" , "www-xml-sitemap-generator-org");
|
10 |
define ( "XSG_RULES_VERSION" , "0003"); // increment this if the rewrite rules ever change.
|
@@ -240,9 +240,20 @@ class core {
|
|
240 |
|
241 |
public static function getTimeBand($startTime)
|
242 |
{
|
243 |
-
$time = microtime(true) - $startTime;
|
244 |
-
|
245 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
public static function updateStatistics($eventCategory, $eventAction, $timeBand) {
|
248 |
|
4 |
|
5 |
include_once 'settingsModels.php';
|
6 |
include_once 'upgrader.php';
|
7 |
+
|
8 |
define ( "XSG_PLUGIN_VERSION" , "1.3.0");
|
9 |
define ( "XSG_PLUGIN_NAME" , "www-xml-sitemap-generator-org");
|
10 |
define ( "XSG_RULES_VERSION" , "0003"); // increment this if the rewrite rules ever change.
|
240 |
|
241 |
public static function getTimeBand($startTime)
|
242 |
{
|
243 |
+
$time = round(microtime(true) - $startTime);
|
244 |
+
|
245 |
+
if( $time = 0) {$timeBand = "0";}
|
246 |
+
else if( $time <= 10) {$timeBand = "1 to 10";}
|
247 |
+
else if( $time <= 30) {$timeBand = "11 to 30";}
|
248 |
+
else if ($time <= 60) {$timeBand = "31 to 60";}
|
249 |
+
else if ($time <= 180) {$timeBand = "61 to 180";}
|
250 |
+
else if ($time <= 300) {$timeBand = "181 to 300";}
|
251 |
+
else if ($time <= 600) {$timeBand = "301 to 600";}
|
252 |
+
else if ($time <= 1200) {$timeBand = "601 to 1200";}
|
253 |
+
else if ($time <= 1800) {$timeBand = "1201 to 1800";}
|
254 |
+
else {$timeBand = "> 1801";}
|
255 |
+
|
256 |
+
return $timeBand;
|
257 |
}
|
258 |
public static function updateStatistics($eventCategory, $eventAction, $timeBand) {
|
259 |
|
code/dataAccess.php
CHANGED
@@ -163,9 +163,17 @@ class dataAccess {
|
|
163 |
return $results;
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
public static function getTaxonomy($date = "updated"){
|
167 |
|
168 |
global $wpdb;
|
|
|
169 |
$date = self::getDateField($date);
|
170 |
$tablemeta = $wpdb->prefix . 'xsg_sitemap_meta';
|
171 |
$cmd = "SELECT terms.term_id, terms.name, terms.slug, terms.term_group,
|
@@ -178,16 +186,14 @@ class dataAccess {
|
|
178 |
INNER JOIN {$wpdb->posts} as posts ON Relationships.object_id = posts.Id
|
179 |
AND posts.post_status = 'publish' AND posts.post_password = ''
|
180 |
INNER JOIN {$wpdb->term_taxonomy} as tax ON terms.term_id = tax.term_id
|
181 |
-
LEFT JOIN {$tablemeta} as meta ON terms.term_Id = meta.ItemId
|
182 |
-
WHERE tax.taxonomy IN (
|
183 |
GROUP BY terms.term_id, terms.name, terms.slug, terms.term_group, tax.description, tax.term_taxonomy_id, tax.taxonomy, tax.description, meta.exclude, meta.priority, meta.frequency";
|
184 |
|
185 |
$results = self::execute($cmd);
|
186 |
|
187 |
return $results;
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
}
|
192 |
|
193 |
public static function getAuthors($date = "updated") {
|
@@ -258,7 +264,7 @@ class dataAccess {
|
|
258 |
FROM {$wpdb->posts} as posts
|
259 |
WHERE post_status = 'publish'";
|
260 |
|
261 |
-
$postCount = $wpdb->get_var($cmd);
|
262 |
|
263 |
if( $postCount = 0) {$postCountLabel = "0";}
|
264 |
else if( $postCount <= 10) {$postCountLabel = "1 to 10";}
|
163 |
return $results;
|
164 |
}
|
165 |
|
166 |
+
private static function getTaxonomyTypes()
|
167 |
+
{
|
168 |
+
$taxonomies = get_taxonomies(array( "public" => "1", "show_ui" =>"1" ), 'names' ,'and');
|
169 |
+
$taxonomies = "'" . implode("','", $taxonomies) . "'";
|
170 |
+
return $taxonomies;
|
171 |
+
}
|
172 |
+
|
173 |
public static function getTaxonomy($date = "updated"){
|
174 |
|
175 |
global $wpdb;
|
176 |
+
$taxonomies = self::getTaxonomyTypes();
|
177 |
$date = self::getDateField($date);
|
178 |
$tablemeta = $wpdb->prefix . 'xsg_sitemap_meta';
|
179 |
$cmd = "SELECT terms.term_id, terms.name, terms.slug, terms.term_group,
|
186 |
INNER JOIN {$wpdb->posts} as posts ON Relationships.object_id = posts.Id
|
187 |
AND posts.post_status = 'publish' AND posts.post_password = ''
|
188 |
INNER JOIN {$wpdb->term_taxonomy} as tax ON terms.term_id = tax.term_id
|
189 |
+
LEFT JOIN {$tablemeta} as meta ON terms.term_Id = meta.ItemId
|
190 |
+
WHERE tax.taxonomy IN ({$taxonomies})
|
191 |
GROUP BY terms.term_id, terms.name, terms.slug, terms.term_group, tax.description, tax.term_taxonomy_id, tax.taxonomy, tax.description, meta.exclude, meta.priority, meta.frequency";
|
192 |
|
193 |
$results = self::execute($cmd);
|
194 |
|
195 |
return $results;
|
196 |
+
|
|
|
|
|
197 |
}
|
198 |
|
199 |
public static function getAuthors($date = "updated") {
|
264 |
FROM {$wpdb->posts} as posts
|
265 |
WHERE post_status = 'publish'";
|
266 |
|
267 |
+
$postCount = (int)$wpdb->get_var($cmd);
|
268 |
|
269 |
if( $postCount = 0) {$postCountLabel = "0";}
|
270 |
else if( $postCount <= 10) {$postCountLabel = "1 to 10";}
|
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.
|
8 |
|
9 |
|
10 |
Easy to use, highly configurable WordPress RSS and Google XML Sitemap generator plugin. Compatible with Google, Bing, Baidu, Yandex and more.
|
@@ -55,6 +55,11 @@ Stay in touch via [facebook](https://www.facebook.com/XmlSitemapGenerator) and [
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
= 1.3.0 =
|
59 |
Release Date: September 7th, 2016
|
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.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.
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.3.1 =
|
59 |
+
Release Date: January 26th, 2017
|
60 |
+
|
61 |
+
* Fix : Custom taxonomy, tags & categories not displaying
|
62 |
+
|
63 |
= 1.3.0 =
|
64 |
Release Date: September 7th, 2016
|
65 |
|
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.
|
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.1
|
8 |
Author: XmlSitemapGenerator.org
|
9 |
Author URI: https://XmlSitemapGenerator.org
|
10 |
License: GPL2
|