Devstorm
Member
Posted 1 year ago #
As in the title, even when other security-plugins are installed, the WordPress version number is properly removed frm HTML META-tag and the newsfeed. But your plugin keeps showing the version number.
Please remove it or make a configuration option to enable it. It is not needed in the sitemap and leaks security information.
Regards, Devstorm
http://wordpress.org/extend/plugins/google-sitemap-generator/
Vladimir Kolesnikov
Member
Posted 1 year ago #
Please try this:
--- sitemap-core.php.orig 2010-08-16 10:49:16.000000000 +0300
+++ sitemap-core.php 2010-08-23 20:02:06.000000000 +0300
@@ -1654,9 +1654,9 @@
$this->AddElement(new GoogleSitemapGeneratorXmlEntry('<' . '?xml-stylesheet type="text/xsl" href="' . $styleSheet . '"?' . '>'));
}
- $this->AddElement(new GoogleSitemapGeneratorDebugEntry("generator=\"wordpress/" . get_bloginfo('version') . "\""));
- $this->AddElement(new GoogleSitemapGeneratorDebugEntry("sitemap-generator-url=\"http://www.arnebrachhold.de\" sitemap-generator-version=\"" . $this->GetVersion() . "\""));
- $this->AddElement(new GoogleSitemapGeneratorDebugEntry("generated-on=\"" . date(get_option("date_format") . " " . get_option("time_format")) . "\""));
+// $this->AddElement(new GoogleSitemapGeneratorDebugEntry("generator=\"wordpress/" . get_bloginfo('version') . "\""));
+// $this->AddElement(new GoogleSitemapGeneratorDebugEntry("sitemap-generator-url=\"http://www.arnebrachhold.de\" sitemap-generator-version=\"" . $this->GetVersion() . "\""));
+// $this->AddElement(new GoogleSitemapGeneratorDebugEntry("generated-on=\"" . date(get_option("date_format") . " " . get_option("time_format")) . "\""));
//All comments as an asso. Array (postID=>commentCount)
$comments=($this->GetOption("b_prio_provider")!=""?$this->GetComments():array());
Devstorm
Member
Posted 1 year ago #
THanks, your patch works fine, I only modified the line:
$this->AddElement(new GoogleSitemapGeneratorDebugEntry("generator=\"wordpress\""));
Can you remove the get_bloginfo('version') from future versions?
All other (debug)info is useful and good advertismement for this great plugin.
Regards, Devstorm
Vladimir Kolesnikov
Member
Posted 1 year ago #
Devstorm, I am not the author of that plugin
Devstorm
Member
Posted 1 year ago #
Oh, I am sorry. I will contact him directly.