Google XML Sitemaps - Version 3.2.8

Version Description

Download this release

Release Info

Developer arnee
Plugin Icon 128x128 Google XML Sitemaps
Version 3.2.8
Comparing to
See all releases

Code changes from version 3.2.7 to 3.2.8

Files changed (5) hide show
  1. documentation.txt +3 -0
  2. readme.txt +2 -2
  3. sitemap-core.php +5 -47
  4. sitemap-ui.php +1 -18
  5. sitemap.php +2 -2
documentation.txt CHANGED
@@ -237,6 +237,9 @@
237
Removed deprecated function call
238
2012-04-24 3.2.7 Fixed custom post types, thanks to clearsite of the wordpress.org forum!
239
Fixed broken admin layout on WP 3.4
240
241
Maybe Todo:
242
==============================================================================
237
Removed deprecated function call
238
2012-04-24 3.2.7 Fixed custom post types, thanks to clearsite of the wordpress.org forum!
239
Fixed broken admin layout on WP 3.4
240
+ 2012-08-08 3.2.8 Fixed wrong custom taxonomy URLs, thanks to ramon fincken of the wordpress.org forum!
241
+ Removed ASK ping since they shut down their service.
242
+ Exclude post_format taxonomy from custom taxonomy list
243
244
Maybe Todo:
245
==============================================================================
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: arnee
3
Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml
5
Requires at least: 2.1
6
- Tested up to: 3.4
7
- Stable tag: 3.2.6
8
9
This plugin will generate a special XML sitemap which will help search engines to better index your blog.
10
3
Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml
5
Requires at least: 2.1
6
+ Tested up to: 3.5
7
+ Stable tag: 3.2.7
8
9
This plugin will generate a special XML sitemap which will help search engines to better index your blog.
10
sitemap-core.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
4
- $Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $
5
6
*/
7
@@ -188,31 +188,6 @@ class GoogleSitemapGeneratorStatus {
188
return round($this->_googleEndTime - $this->_googleStartTime,2);
189
}
190
191
- var $_usedAsk = false;
192
- var $_askUrl = '';
193
- var $_askSuccess = false;
194
- var $_askStartTime = 0;
195
- var $_askEndTime = 0;
196
-
197
- function StartAskPing($url) {
198
- $this->_usedAsk = true;
199
- $this->_askUrl = $url;
200
- $this->_askStartTime = $this->GetMicrotimeFloat();
201
-
202
- $this->Save();
203
- }
204
-
205
- function EndAskPing($success) {
206
- $this->_askEndTime = $this->GetMicrotimeFloat();
207
- $this->_askSuccess = $success;
208
-
209
- $this->Save();
210
- }
211
-
212
- function GetAskTime() {
213
- return round($this->_askEndTime - $this->_askStartTime,2);
214
- }
215
-
216
var $_usedMsn = false;
217
var $_msnUrl = '';
218
var $_msnSuccess = false;
@@ -721,7 +696,7 @@ class GoogleSitemapGenerator {
721
/**
722
* @var Version of the generator in SVN
723
*/
724
- var $_svnVersion = '$Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee #x27;;
725
726
/**
727
* @var array The unserialized array with the stored options
@@ -885,7 +860,6 @@ class GoogleSitemapGenerator {
885
$this->_options["sm_b_xml"]=true; //Create a .xml file
886
$this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
887
$this->_options["sm_b_ping"]=true; //Auto ping Google
888
- $this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
889
$this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
890
$this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
891
$this->_options["sm_b_auto_enabled"]=true; //Rebuild sitemap when content is changed
@@ -1154,7 +1128,7 @@ class GoogleSitemapGenerator {
1154
*/
1155
function GetCustomTaxonomies() {
1156
$taxonomies = get_object_taxonomies('post');
1157
- return array_diff($taxonomies,array("category","post_tag"));
1158
}
1159
1160
/**
@@ -2145,7 +2119,7 @@ class GoogleSitemapGenerator {
2145
$termInfo = $wpdb->get_results($sql);
2146
2147
foreach($termInfo AS $term) {
2148
- $this->AddUrl(get_term_link($term,$term->_taxonomy),$term->_mod_date ,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));
2149
}
2150
}
2151
@@ -2204,19 +2178,6 @@ class GoogleSitemapGenerator {
2204
}
2205
}
2206
2207
- //Ping Ask.com
2208
- if($this->GetOption("b_pingask") && !empty($pingUrl)) {
2209
- $sPingUrl="http://submissions.ask.com/ping?sitemap=" . urlencode($pingUrl);
2210
- $status->StartAskPing($sPingUrl);
2211
- $pingres=$this->RemoteOpen($sPingUrl);
2212
-
2213
- if($pingres==NULL || $pingres===false || strpos($pingres,"successfully received and added")===false) { //Ask.com returns 200 OK even if there was an error, so we need to check the content.
2214
- $status->EndAskPing(false,$this->_lastError);
2215
- trigger_error("Failed to ping Ask.com: " . htmlspecialchars(strip_tags($pingres)),E_USER_NOTICE);
2216
- } else {
2217
- $status->EndAskPing(true);
2218
- }
2219
- }
2220
2221
//Ping Bing
2222
if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
@@ -2269,10 +2230,7 @@ class GoogleSitemapGenerator {
2269
break;
2270
case "msn":
2271
$url = $status->_msnUrl;
2272
- break;
2273
- case "ask":
2274
- $url = $status->_askUrl;
2275
- break;
2276
}
2277
2278
if(empty($url)) die("Invalid ping url");
1
<?php
2
/*
3
4
+ $Id: sitemap-core.php 583237 2012-08-08 21:06:12Z arnee $
5
6
*/
7
188
return round($this->_googleEndTime - $this->_googleStartTime,2);
189
}
190
191
var $_usedMsn = false;
192
var $_msnUrl = '';
193
var $_msnSuccess = false;
696
/**
697
* @var Version of the generator in SVN
698
*/
699
+ var $_svnVersion = '$Id: sitemap-core.php 583237 2012-08-08 21:06:12Z arnee #x27;;
700
701
/**
702
* @var array The unserialized array with the stored options
860
$this->_options["sm_b_xml"]=true; //Create a .xml file
861
$this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
862
$this->_options["sm_b_ping"]=true; //Auto ping Google
863
$this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
864
$this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
865
$this->_options["sm_b_auto_enabled"]=true; //Rebuild sitemap when content is changed
1128
*/
1129
function GetCustomTaxonomies() {
1130
$taxonomies = get_object_taxonomies('post');
1131
+ return array_diff($taxonomies,array("category","post_tag","post_format"));
1132
}
1133
1134
/**
2119
$termInfo = $wpdb->get_results($sql);
2120
2121
foreach($termInfo AS $term) {
2122
+ $this->AddUrl(get_term_link($term->slug,$term->_taxonomy),$term->_mod_date ,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));
2123
}
2124
}
2125
2178
}
2179
}
2180
2181
2182
//Ping Bing
2183
if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
2230
break;
2231
case "msn":
2232
$url = $status->_msnUrl;
2233
+ break;
2234
}
2235
2236
if(empty($url)) die("Invalid ping url");
sitemap-ui.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
4
- $Id: sitemap-ui.php 535851 2012-04-24 21:48:23Z arnee $
5
6
*/
7
@@ -734,18 +734,6 @@ class GoogleSitemapGeneratorUI {
734
}
735
}
736
737
- if($status->_usedAsk) {
738
- if($status->_askSuccess) {
739
- echo "<li>" .__("Ask.com was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
740
- $at = $status->GetAskTime();
741
- if($at>4) {
742
- echo "<li class=\sm_optimize\">" . str_replace("%time%",$at,__("It took %time% seconds to notify Ask.com, maybe you want to disable this feature to reduce the building time.",'sitemap')) . "</li>";
743
- }
744
- } else {
745
- echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=ask&noheader=true",'sitemap'),__('There was a problem while notifying Ask.com. <a href="%s">View result</a>','sitemap')) . "</li>";
746
- }
747
- }
748
-
749
$et = $status->GetTime();
750
$mem = $status->GetMemoryUsage();
751
@@ -842,11 +830,6 @@ class GoogleSitemapGeneratorUI {
842
<label for="sm_b_pingmsn"><?php _e('Notify Bing (formerly MSN Live Search) about updates of your Blog', 'sitemap') ?></label><br />
843
<small><?php echo str_replace("%s",$this->sg->GetRedirectLink('sitemap-lwt'),__('No registration required, but you can join the <a href="%s">Bing Webmaster Tools</a> to check crawling statistics.','sitemap')); ?></small>
844
</li>
845
- <li>
846
- <input type="checkbox" id="sm_b_pingask" name="sm_b_pingask" <?php echo ($this->sg->GetOption("b_pingask")==true?"checked=\"checked\"":"") ?> />
847
- <label for="sm_b_pingask"><?php _e('Notify Ask.com about updates of your Blog', 'sitemap') ?></label><br />
848
- <small><?php _e('No registration required.','sitemap'); ?></small>
849
- </li>
850
<li>
851
<label for="sm_b_robots">
852
<input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
1
<?php
2
/*
3
4
+ $Id: sitemap-ui.php 583237 2012-08-08 21:06:12Z arnee $
5
6
*/
7
734
}
735
}
736
737
$et = $status->GetTime();
738
$mem = $status->GetMemoryUsage();
739
830
<label for="sm_b_pingmsn"><?php _e('Notify Bing (formerly MSN Live Search) about updates of your Blog', 'sitemap') ?></label><br />
831
<small><?php echo str_replace("%s",$this->sg->GetRedirectLink('sitemap-lwt'),__('No registration required, but you can join the <a href="%s">Bing Webmaster Tools</a> to check crawling statistics.','sitemap')); ?></small>
832
</li>
833
<li>
834
<label for="sm_b_robots">
835
<input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
sitemap.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/*
4
- $Id: sitemap.php 535851 2012-04-24 21:48:23Z arnee $
5
6
Google XML Sitemaps Generator for WordPress
7
==============================================================================
@@ -25,7 +25,7 @@
25
Plugin Name: Google XML Sitemaps
26
Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
27
Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog.
28
- Version: 3.2.7
29
Author: Arne Brachhold
30
Author URI: http://www.arnebrachhold.de/
31
Text Domain: sitemap
1
<?php
2
3
/*
4
+ $Id: sitemap.php 583238 2012-08-08 21:10:26Z arnee $
5
6
Google XML Sitemaps Generator for WordPress
7
==============================================================================
25
Plugin Name: Google XML Sitemaps
26
Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
27
Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog.
28
+ Version: 3.2.8
29
Author: Arne Brachhold
30
Author URI: http://www.arnebrachhold.de/
31
Text Domain: sitemap