Version Description
Download this release
Release Info
Developer | arnee |
Plugin | Google XML Sitemaps |
Version | 3.0.3.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.3.2 to 3.0.3.3
- readme.txt +1 -1
- sitemap.php +14 -9
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: arnee
|
|
3 |
Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
|
4 |
Tags: google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml
|
5 |
Requires at least: 2.1
|
6 |
-
Stable tag: 3.0.3
|
7 |
|
8 |
This plugin will create a Google sitemaps compliant XML-Sitemap of your WordPress blog.
|
9 |
|
3 |
Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
|
4 |
Tags: google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml
|
5 |
Requires at least: 2.1
|
6 |
+
Stable tag: 3.0.3.3
|
7 |
|
8 |
This plugin will create a Google sitemaps compliant XML-Sitemap of your WordPress blog.
|
9 |
|
sitemap.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
-
$Id: sitemap.php
|
5 |
|
6 |
Google XML Sitemaps Generator for WordPress
|
7 |
==============================================================================
|
@@ -32,7 +32,7 @@
|
|
32 |
Plugin Name: Google XML Sitemaps
|
33 |
Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
|
34 |
Description: This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. <a href="options-general.php?page=sitemap.php">Configuration Page</a>
|
35 |
-
Version: 3.0.3.
|
36 |
Author: Arne Brachhold
|
37 |
Author URI: http://www.arnebrachhold.de/
|
38 |
|
@@ -179,6 +179,9 @@
|
|
179 |
Removed some hooks which rebuilt the sitemap with every comment
|
180 |
2008-03-30 3.0.3.1 Added compatibility CSS for WP 2.5
|
181 |
2008-04-28 3.0.3.2 Improved WP 2.5 handling
|
|
|
|
|
|
|
182 |
|
183 |
Maybe Todo:
|
184 |
==============================================================================
|
@@ -1111,12 +1114,12 @@ class GoogleSitemapGenerator {
|
|
1111 |
/**
|
1112 |
* @var Version of the generator
|
1113 |
*/
|
1114 |
-
var $_version = "3.0.3.
|
1115 |
|
1116 |
/**
|
1117 |
* @var Version of the generator in SVN
|
1118 |
*/
|
1119 |
-
var $_svnVersion = '$Id: sitemap.php
|
1120 |
|
1121 |
/**
|
1122 |
* @var string The full path to the blog directory
|
@@ -1304,7 +1307,7 @@ class GoogleSitemapGenerator {
|
|
1304 |
$this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
|
1305 |
$this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
|
1306 |
$this->_options["sm_b_auto_enabled"]=true; //Rebuild sitemap when content is changed
|
1307 |
-
$this->_options["sm_b_auto_delay"]=
|
1308 |
$this->_options["sm_b_manual_key"]=md5(microtime());//The secret key to build the sitemap via GET request
|
1309 |
$this->_options["sm_b_memory"] = ''; //Set Memory Limit (e.g. 16M)
|
1310 |
$this->_options["sm_b_time"] = -1; //Set time limit in seconds, 0 for unlimited, -1 for disabled
|
@@ -1584,8 +1587,10 @@ class GoogleSitemapGenerator {
|
|
1584 |
//Build the sitemap directly or schedule it with WP cron
|
1585 |
if($this->GetOption("b_auto_delay")==true) {
|
1586 |
if(!$this->_isScheduled) {
|
1587 |
-
//Schedule in
|
1588 |
-
|
|
|
|
|
1589 |
$this->_isScheduled = true;
|
1590 |
}
|
1591 |
} else {
|
@@ -2353,13 +2358,13 @@ class GoogleSitemapGenerator {
|
|
2353 |
{$wpdb->users},
|
2354 |
{$wpdb->posts}
|
2355 |
WHERE
|
2356 |
-
{$wpdb->posts}.post_author = {$wpdb->
|
2357 |
AND {$wpdb->posts}.post_status = 'publish'
|
2358 |
AND {$wpdb->posts}.post_type = 'post'
|
2359 |
AND {$wpdb->posts}.post_password = ''
|
2360 |
" . (floatval($wp_version) < 2.1?"AND {$wpdb->posts}.post_date_gmt <= '" . gmdate('Y-m-d H:i:59') . "'":"") . "
|
2361 |
GROUP BY
|
2362 |
-
{$wpdb->
|
2363 |
{$wpdb->users}.user_nicename";
|
2364 |
$authors = $wpdb->get_results($sql);
|
2365 |
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
+
$Id: sitemap.php 43482 2008-04-29 21:35:04Z arnee $
|
5 |
|
6 |
Google XML Sitemaps Generator for WordPress
|
7 |
==============================================================================
|
32 |
Plugin Name: Google XML Sitemaps
|
33 |
Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
|
34 |
Description: This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. <a href="options-general.php?page=sitemap.php">Configuration Page</a>
|
35 |
+
Version: 3.0.3.3
|
36 |
Author: Arne Brachhold
|
37 |
Author URI: http://www.arnebrachhold.de/
|
38 |
|
179 |
Removed some hooks which rebuilt the sitemap with every comment
|
180 |
2008-03-30 3.0.3.1 Added compatibility CSS for WP 2.5
|
181 |
2008-04-28 3.0.3.2 Improved WP 2.5 handling
|
182 |
+
2008-04-29 3.0.3.3 Fixed author pages
|
183 |
+
Enhanced background building and increased delay to 15 seconds
|
184 |
+
Background building is enabled by default
|
185 |
|
186 |
Maybe Todo:
|
187 |
==============================================================================
|
1114 |
/**
|
1115 |
* @var Version of the generator
|
1116 |
*/
|
1117 |
+
var $_version = "3.0.3.3";
|
1118 |
|
1119 |
/**
|
1120 |
* @var Version of the generator in SVN
|
1121 |
*/
|
1122 |
+
var $_svnVersion = '$Id: sitemap.php 43482 2008-04-29 21:35:04Z arnee $';
|
1123 |
|
1124 |
/**
|
1125 |
* @var string The full path to the blog directory
|
1307 |
$this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
|
1308 |
$this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
|
1309 |
$this->_options["sm_b_auto_enabled"]=true; //Rebuild sitemap when content is changed
|
1310 |
+
$this->_options["sm_b_auto_delay"]=true; //Use WP Cron to execute the building process in the background
|
1311 |
$this->_options["sm_b_manual_key"]=md5(microtime());//The secret key to build the sitemap via GET request
|
1312 |
$this->_options["sm_b_memory"] = ''; //Set Memory Limit (e.g. 16M)
|
1313 |
$this->_options["sm_b_time"] = -1; //Set time limit in seconds, 0 for unlimited, -1 for disabled
|
1587 |
//Build the sitemap directly or schedule it with WP cron
|
1588 |
if($this->GetOption("b_auto_delay")==true) {
|
1589 |
if(!$this->_isScheduled) {
|
1590 |
+
//Schedule in 15 seconds, this should be enough to catch all changes.
|
1591 |
+
//Clear all other existing hooks, so the sitemap is only built once.
|
1592 |
+
wp_clear_scheduled_hook('sm_build_cron');
|
1593 |
+
wp_schedule_single_event(time()+15,'sm_build_cron');
|
1594 |
$this->_isScheduled = true;
|
1595 |
}
|
1596 |
} else {
|
2358 |
{$wpdb->users},
|
2359 |
{$wpdb->posts}
|
2360 |
WHERE
|
2361 |
+
{$wpdb->posts}.post_author = {$wpdb->users}.ID
|
2362 |
AND {$wpdb->posts}.post_status = 'publish'
|
2363 |
AND {$wpdb->posts}.post_type = 'post'
|
2364 |
AND {$wpdb->posts}.post_password = ''
|
2365 |
" . (floatval($wp_version) < 2.1?"AND {$wpdb->posts}.post_date_gmt <= '" . gmdate('Y-m-d H:i:59') . "'":"") . "
|
2366 |
GROUP BY
|
2367 |
+
{$wpdb->users}.ID,
|
2368 |
{$wpdb->users}.user_nicename";
|
2369 |
$authors = $wpdb->get_results($sql);
|
2370 |
|