WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Google XML Sitemaps] Please remove WordPress version number signature from sitemap.xml

[Plugin: Google XML Sitemaps] Please remove WordPress version number signature from sitemap.xml

  • Devstorm
    Member

    @devstorm

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Vladimir Kolesnikov
    Member

    @vladimir_kolesnikov

    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

    @devstorm

    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

    @vladimir_kolesnikov

    Devstorm, I am not the author of that plugin

    Devstorm
    Member

    @devstorm

    Oh, I am sorry. I will contact him directly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Please remove WordPress version number signature from sitemap.xml’ is closed to new replies.