WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
Please remove WordPress version number + signature from sitemap.xml (5 posts)

  1. Devstorm
    Member
    Posted 3 years 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/

  2. Vladimir Kolesnikov
    Member
    Posted 3 years 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());
  3. Devstorm
    Member
    Posted 3 years 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

  4. Vladimir Kolesnikov
    Member
    Posted 3 years ago #

    Devstorm, I am not the author of that plugin

  5. Devstorm
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic