Version Description
Download this release
Release Info
Developer | arnee |
Plugin | Google XML Sitemaps |
Version | 3.0.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.3.1 to 3.0.3.2
- sitemap.php +13 -5
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 |
|
@@ -178,6 +178,7 @@
|
|
178 |
2007-12-30 3.0.3 Added Live Search Ping
|
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 |
|
182 |
Maybe Todo:
|
183 |
==============================================================================
|
@@ -1110,12 +1111,12 @@ class GoogleSitemapGenerator {
|
|
1110 |
/**
|
1111 |
* @var Version of the generator
|
1112 |
*/
|
1113 |
-
var $_version = "3.0.3.
|
1114 |
|
1115 |
/**
|
1116 |
* @var Version of the generator in SVN
|
1117 |
*/
|
1118 |
-
var $_svnVersion = '$Id: sitemap.php
|
1119 |
|
1120 |
/**
|
1121 |
* @var string The full path to the blog directory
|
@@ -2225,7 +2226,14 @@ class GoogleSitemapGenerator {
|
|
2225 |
$z++;
|
2226 |
|
2227 |
//Clean cache because it's incomplete
|
2228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2229 |
}
|
2230 |
unset($postRes);
|
2231 |
unset($prioProvider);
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
+
$Id: sitemap.php 43010 2008-04-27 22:39:09Z 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.2
|
36 |
Author: Arne Brachhold
|
37 |
Author URI: http://www.arnebrachhold.de/
|
38 |
|
178 |
2007-12-30 3.0.3 Added Live Search Ping
|
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 |
/**
|
1112 |
* @var Version of the generator
|
1113 |
*/
|
1114 |
+
var $_version = "3.0.3.2";
|
1115 |
|
1116 |
/**
|
1117 |
* @var Version of the generator in SVN
|
1118 |
*/
|
1119 |
+
var $_svnVersion = '$Id: sitemap.php 43010 2008-04-27 22:39:09Z arnee $';
|
1120 |
|
1121 |
/**
|
1122 |
* @var string The full path to the blog directory
|
2226 |
$z++;
|
2227 |
|
2228 |
//Clean cache because it's incomplete
|
2229 |
+
if(version_compare($wp_version,"2.5",">=")) {
|
2230 |
+
//WP 2.5 makes a mysql query for every clean_post_cache to clear the child cache
|
2231 |
+
wp_cache_delete($post->ID, 'posts');
|
2232 |
+
wp_cache_delete($post->ID, 'post_meta');
|
2233 |
+
clean_object_term_cache($post->ID, 'post');
|
2234 |
+
} else {
|
2235 |
+
clean_post_cache($post->ID);
|
2236 |
+
}
|
2237 |
}
|
2238 |
unset($postRes);
|
2239 |
unset($prioProvider);
|