Version Description
Download this release
Release Info
Developer | arnee |
Plugin | Google XML Sitemaps |
Version | 3.2.6 |
Comparing to | |
See all releases |
Code changes from version 3.2.5 to 3.2.6
- documentation.txt +4 -0
- img/icon-yahoo.gif +0 -0
- readme.txt +1 -1
- sitemap-core.php +2 -46
- sitemap-ui.php +6 -31
- sitemap.php +2 -2
documentation.txt
CHANGED
@@ -231,6 +231,10 @@
|
|
231 |
Changed get_bloginfo('siteurl') to get_bloginfo('url') to avoid deprecation warning
|
232 |
Changed has_cap(10) to has_cap('level_10') to avoid deprecation warning
|
233 |
Fixed wrong SQL statement for author pages (Ticket #1108), thanks to twoenough
|
|
|
|
|
|
|
|
|
234 |
|
235 |
Maybe Todo:
|
236 |
==============================================================================
|
231 |
Changed get_bloginfo('siteurl') to get_bloginfo('url') to avoid deprecation warning
|
232 |
Changed has_cap(10) to has_cap('level_10') to avoid deprecation warning
|
233 |
Fixed wrong SQL statement for author pages (Ticket #1108), thanks to twoenough
|
234 |
+
2010-07-11 3.2.5 Backported Bing ping success fix from beta
|
235 |
+
Added friendly hint to try out the new beta
|
236 |
+
2010-09-19 3.2.6 Removed YAHOO ping since YAHOO uses bing now
|
237 |
+
Removed deprecated function call
|
238 |
|
239 |
Maybe Todo:
|
240 |
==============================================================================
|
img/icon-yahoo.gif
DELETED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.3
|
7 |
-
Stable tag: 3.2.
|
8 |
|
9 |
This plugin will generate a special XML sitemap which will help search engines to better index your blog.
|
10 |
|
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.3
|
7 |
+
Stable tag: 3.2.5
|
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
|
5 |
|
6 |
*/
|
7 |
|
@@ -188,31 +188,6 @@ class GoogleSitemapGeneratorStatus {
|
|
188 |
return round($this->_googleEndTime - $this->_googleStartTime,2);
|
189 |
}
|
190 |
|
191 |
-
var $_usedYahoo = false;
|
192 |
-
var $_yahooUrl = '';
|
193 |
-
var $_yahooSuccess = false;
|
194 |
-
var $_yahooStartTime = 0;
|
195 |
-
var $_yahooEndTime = 0;
|
196 |
-
|
197 |
-
function StartYahooPing($url) {
|
198 |
-
$this->_yahooUrl = $url;
|
199 |
-
$this->_usedYahoo = true;
|
200 |
-
$this->_yahooStartTime = $this->GetMicrotimeFloat();
|
201 |
-
|
202 |
-
$this->Save();
|
203 |
-
}
|
204 |
-
|
205 |
-
function EndYahooPing($success) {
|
206 |
-
$this->_yahooEndTime = $this->GetMicrotimeFloat();
|
207 |
-
$this->_yahooSuccess = $success;
|
208 |
-
|
209 |
-
$this->Save();
|
210 |
-
}
|
211 |
-
|
212 |
-
function GetYahooTime() {
|
213 |
-
return round($this->_yahooEndTime - $this->_yahooStartTime,2);
|
214 |
-
}
|
215 |
-
|
216 |
var $_usedAsk = false;
|
217 |
var $_askUrl = '';
|
218 |
var $_askSuccess = false;
|
@@ -746,7 +721,7 @@ class GoogleSitemapGenerator {
|
|
746 |
/**
|
747 |
* @var Version of the generator in SVN
|
748 |
*/
|
749 |
-
var $_svnVersion = '$Id: sitemap-core.php
|
750 |
|
751 |
/**
|
752 |
* @var array The unserialized array with the stored options
|
@@ -910,8 +885,6 @@ class GoogleSitemapGenerator {
|
|
910 |
$this->_options["sm_b_xml"]=true; //Create a .xml file
|
911 |
$this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
|
912 |
$this->_options["sm_b_ping"]=true; //Auto ping Google
|
913 |
-
$this->_options["sm_b_pingyahoo"]=false; //Auto ping YAHOO
|
914 |
-
$this->_options["sm_b_yahookey"]=''; //YAHOO Application Key
|
915 |
$this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
|
916 |
$this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
|
917 |
$this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
|
@@ -2245,20 +2218,6 @@ class GoogleSitemapGenerator {
|
|
2245 |
}
|
2246 |
}
|
2247 |
|
2248 |
-
//Ping YAHOO
|
2249 |
-
if($this->GetOption("b_pingyahoo")===true && $this->GetOption("b_yahookey")!="" && !empty($pingUrl)) {
|
2250 |
-
$sPingUrl="http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=" . $this->GetOption("b_yahookey") . "&url=" . urlencode($pingUrl);
|
2251 |
-
$status->StartYahooPing($sPingUrl);
|
2252 |
-
$pingres=$this->RemoteOpen($sPingUrl);
|
2253 |
-
|
2254 |
-
if($pingres==NULL || $pingres===false || strpos(strtolower($pingres),"success")===false) {
|
2255 |
-
trigger_error("Failed to ping YAHOO: " . htmlspecialchars(strip_tags($pingres)),E_USER_NOTICE);
|
2256 |
-
$status->EndYahooPing(false,$this->_lastError);
|
2257 |
-
} else {
|
2258 |
-
$status->EndYahooPing(true);
|
2259 |
-
}
|
2260 |
-
}
|
2261 |
-
|
2262 |
//Ping Bing
|
2263 |
if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
|
2264 |
$sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
|
@@ -2308,9 +2267,6 @@ class GoogleSitemapGenerator {
|
|
2308 |
case "google":
|
2309 |
$url = $status->_googleUrl;
|
2310 |
break;
|
2311 |
-
case "yahoo":
|
2312 |
-
$url = $status->_yahooUrl;
|
2313 |
-
break;
|
2314 |
case "msn":
|
2315 |
$url = $status->_msnUrl;
|
2316 |
break;
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
+
$Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $
|
5 |
|
6 |
*/
|
7 |
|
188 |
return round($this->_googleEndTime - $this->_googleStartTime,2);
|
189 |
}
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
var $_usedAsk = false;
|
192 |
var $_askUrl = '';
|
193 |
var $_askSuccess = false;
|
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 $';
|
725 |
|
726 |
/**
|
727 |
* @var array The unserialized array with the stored options
|
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
|
2218 |
}
|
2219 |
}
|
2220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2221 |
//Ping Bing
|
2222 |
if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
|
2223 |
$sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
|
2267 |
case "google":
|
2268 |
$url = $status->_googleUrl;
|
2269 |
break;
|
|
|
|
|
|
|
2270 |
case "msn":
|
2271 |
$url = $status->_msnUrl;
|
2272 |
break;
|
sitemap-ui.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
-
$Id: sitemap-ui.php
|
5 |
|
6 |
*/
|
7 |
|
@@ -183,7 +183,7 @@ class GoogleSitemapGeneratorUI {
|
|
183 |
|
184 |
//Options of the category "Basic Settings" are boolean, except the filename and the autoprio provider
|
185 |
if(substr($k,0,5)=="sm_b_") {
|
186 |
-
if($k=="sm_b_filename" || $k=="sm_b_fileurl_manual" || $k=="sm_b_filename_manual" || $k=="sm_b_prio_provider" || $k=="sm_b_manual_key" || $k == "
|
187 |
if($k=="sm_b_filename_manual" && strpos($_POST[$k],"\\")!==false){
|
188 |
$_POST[$k]=stripslashes($_POST[$k]);
|
189 |
}
|
@@ -418,10 +418,6 @@ class GoogleSitemapGeneratorUI {
|
|
418 |
background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-google.gif);
|
419 |
}
|
420 |
|
421 |
-
a.sm_resYahoo {
|
422 |
-
background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-yahoo.gif);
|
423 |
-
}
|
424 |
-
|
425 |
a.sm_resBing {
|
426 |
background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-bing.gif);
|
427 |
}
|
@@ -607,10 +603,7 @@ class GoogleSitemapGeneratorUI {
|
|
607 |
<?php $this->HtmlPrintBoxHeader('sm_smres',__('Sitemap Resources:','sitemap'),true); ?>
|
608 |
<a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
|
609 |
<a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwb'); ?>"><?php _e('Webmaster Blog','sitemap'); ?></a>
|
610 |
-
|
611 |
-
<a class="sm_button sm_resYahoo" href="<?php echo $this->sg->GetRedirectLink('sitemap-yse'); ?>"><?php _e('Site Explorer','sitemap'); ?></a>
|
612 |
-
<a class="sm_button sm_resYahoo" href="<?php echo $this->sg->GetRedirectLink('sitemap-ywb'); ?>"><?php _e('Search Blog','sitemap'); ?></a>
|
613 |
-
|
614 |
<a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
|
615 |
<a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lswcb'); ?>"><?php _e('Webmaster Center Blog','sitemap'); ?></a>
|
616 |
<br />
|
@@ -695,19 +688,7 @@ class GoogleSitemapGeneratorUI {
|
|
695 |
echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=google&noheader=true",'sitemap'),__('There was a problem while notifying Google. <a href="%s">View result</a>','sitemap')) . "</li>";
|
696 |
}
|
697 |
}
|
698 |
-
|
699 |
-
if($status->_usedYahoo) {
|
700 |
-
if($status->_yahooSuccess) {
|
701 |
-
echo "<li>" .__("YAHOO was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
|
702 |
-
$yt = $status->GetYahooTime();
|
703 |
-
if($yt>4) {
|
704 |
-
echo "<li class=\sm_optimize\">" . str_replace("%time%",$yt,__("It took %time% seconds to notify YAHOO, maybe you want to disable this feature to reduce the building time.",'sitemap')) . "</li>";
|
705 |
-
}
|
706 |
-
} else {
|
707 |
-
echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=yahoo&noheader=true",'sitemap'),__('There was a problem while notifying YAHOO. <a href="%s">View result</a>','sitemap')) . "</li>";
|
708 |
-
}
|
709 |
-
}
|
710 |
-
|
711 |
if($status->_usedMsn) {
|
712 |
if($status->_msnSuccess) {
|
713 |
echo "<li>" .__("Bing was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
|
@@ -833,12 +814,6 @@ class GoogleSitemapGeneratorUI {
|
|
833 |
<label for="sm_b_pingask"><?php _e('Notify Ask.com about updates of your Blog', 'sitemap') ?></label><br />
|
834 |
<small><?php _e('No registration required.','sitemap'); ?></small>
|
835 |
</li>
|
836 |
-
<li>
|
837 |
-
<input type="checkbox" id="sm_b_pingyahoo" name="sm_b_pingyahoo" <?php echo ($this->sg->GetOption("b_pingyahoo")==true?"checked=\"checked\"":"") ?> />
|
838 |
-
<label for="sm_b_pingyahoo"><?php _e('Notify YAHOO about updates of your Blog', 'sitemap') ?></label><br />
|
839 |
-
<label for="sm_b_yahookey"><?php _e('Your Application ID:', 'sitemap') ?> <input type="text" name="sm_b_yahookey" id="sm_b_yahookey" value="<?php echo $this->sg->GetOption("b_yahookey"); ?>" /></label><br />
|
840 |
-
<small><?php echo str_replace(array("%s1","%s2"),array($this->sg->GetRedirectLink('sitemap-ykr'),' (<a href="http://developer.yahoo.net/about/">Web Services by Yahoo!</a>)'),__('Don\'t you have such a key? <a href="%s1">Request one here</a>! %s2','sitemap')); ?></small>
|
841 |
-
</li>
|
842 |
<li>
|
843 |
<label for="sm_b_robots">
|
844 |
<input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
|
@@ -1315,14 +1290,14 @@ class GoogleSitemapGeneratorUI {
|
|
1315 |
<input type="hidden" name="business" value="<?php echo "donate" /* N O S P A M */ . "@" . "arnebra" . "chhold.de"; ?>" />
|
1316 |
<input type="hidden" name="item_name" value="Sitemap Generator for WordPress. Please tell me if if you don't want to be listed on the donator list." />
|
1317 |
<input type="hidden" name="no_shipping" value="1" />
|
1318 |
-
<input type="hidden" name="return" value="<?php echo
|
1319 |
<input type="hidden" name="item_number" value="0001" />
|
1320 |
<input type="hidden" name="currency_code" value="<?php echo $myLc["cc"]; ?>" />
|
1321 |
<input type="hidden" name="bn" value="PP-BuyNowBF" />
|
1322 |
<input type="hidden" name="lc" value="<?php echo $myLc["lc"]; ?>" />
|
1323 |
<input type="hidden" name="rm" value="2" />
|
1324 |
<input type="hidden" name="on0" value="Your Website" />
|
1325 |
-
<input type="hidden" name="os0" value="<?php echo get_bloginfo("
|
1326 |
</form>
|
1327 |
</div>
|
1328 |
<?php
|
1 |
<?php
|
2 |
/*
|
3 |
|
4 |
+
$Id: sitemap-ui.php 440117 2011-09-19 13:24:49Z arnee $
|
5 |
|
6 |
*/
|
7 |
|
183 |
|
184 |
//Options of the category "Basic Settings" are boolean, except the filename and the autoprio provider
|
185 |
if(substr($k,0,5)=="sm_b_") {
|
186 |
+
if($k=="sm_b_filename" || $k=="sm_b_fileurl_manual" || $k=="sm_b_filename_manual" || $k=="sm_b_prio_provider" || $k=="sm_b_manual_key" || $k == "sm_b_style" || $k == "sm_b_memory") {
|
187 |
if($k=="sm_b_filename_manual" && strpos($_POST[$k],"\\")!==false){
|
188 |
$_POST[$k]=stripslashes($_POST[$k]);
|
189 |
}
|
418 |
background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-google.gif);
|
419 |
}
|
420 |
|
|
|
|
|
|
|
|
|
421 |
a.sm_resBing {
|
422 |
background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-bing.gif);
|
423 |
}
|
603 |
<?php $this->HtmlPrintBoxHeader('sm_smres',__('Sitemap Resources:','sitemap'),true); ?>
|
604 |
<a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
|
605 |
<a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwb'); ?>"><?php _e('Webmaster Blog','sitemap'); ?></a>
|
606 |
+
|
|
|
|
|
|
|
607 |
<a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
|
608 |
<a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lswcb'); ?>"><?php _e('Webmaster Center Blog','sitemap'); ?></a>
|
609 |
<br />
|
688 |
echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=google&noheader=true",'sitemap'),__('There was a problem while notifying Google. <a href="%s">View result</a>','sitemap')) . "</li>";
|
689 |
}
|
690 |
}
|
691 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
if($status->_usedMsn) {
|
693 |
if($status->_msnSuccess) {
|
694 |
echo "<li>" .__("Bing was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
|
814 |
<label for="sm_b_pingask"><?php _e('Notify Ask.com about updates of your Blog', 'sitemap') ?></label><br />
|
815 |
<small><?php _e('No registration required.','sitemap'); ?></small>
|
816 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
<li>
|
818 |
<label for="sm_b_robots">
|
819 |
<input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
|
1290 |
<input type="hidden" name="business" value="<?php echo "donate" /* N O S P A M */ . "@" . "arnebra" . "chhold.de"; ?>" />
|
1291 |
<input type="hidden" name="item_name" value="Sitemap Generator for WordPress. Please tell me if if you don't want to be listed on the donator list." />
|
1292 |
<input type="hidden" name="no_shipping" value="1" />
|
1293 |
+
<input type="hidden" name="return" value="<?php echo $this->sg->GetBackLink(); ?>&sm_donated=true" />
|
1294 |
<input type="hidden" name="item_number" value="0001" />
|
1295 |
<input type="hidden" name="currency_code" value="<?php echo $myLc["cc"]; ?>" />
|
1296 |
<input type="hidden" name="bn" value="PP-BuyNowBF" />
|
1297 |
<input type="hidden" name="lc" value="<?php echo $myLc["lc"]; ?>" />
|
1298 |
<input type="hidden" name="rm" value="2" />
|
1299 |
<input type="hidden" name="on0" value="Your Website" />
|
1300 |
+
<input type="hidden" name="os0" value="<?php echo get_bloginfo("url"); ?>"/>
|
1301 |
</form>
|
1302 |
</div>
|
1303 |
<?php
|
sitemap.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
$Id: sitemap.php
|
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.
|
29 |
Author: Arne Brachhold
|
30 |
Author URI: http://www.arnebrachhold.de/
|
31 |
Text Domain: sitemap
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
$Id: sitemap.php 440117 2011-09-19 13:24:49Z 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.6
|
29 |
Author: Arne Brachhold
|
30 |
Author URI: http://www.arnebrachhold.de/
|
31 |
Text Domain: sitemap
|