Making WordPress.org

Changeset 9072


Ignore:
Timestamp:
07/24/2019 04:10:03 AM (5 years ago)
Author:
dd32
Message:

Robots.txt: Don't link to the Themes sitemap.xml, as there's a server-level redirect in place breaking it.

See #4559.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php

    r9071 r9072  
    4949     * Add the Plugins and Theme directory Sitemaps
    5050     * Currently disabled for Rosetta as Jetpack sitemaps aren't working there.
     51     * Themes are currently disabled as there's a redirect in place breaking direct access.
    5152     */
    5253    if (
     
    5455        // || defined( 'WPORG_GLOBAL_NETWORK_ID' ) && WPORG_GLOBAL_NETWORK_ID === $blog_details->site_id
    5556    ) {
    56         $robots = "Sitemap: https://{$blog_details->domain}/plugins/sitemap.xml\n" .
    57                   "Sitemap: https://{$blog_details->domain}/themes/sitemap.xml\n" .
    58                   $robots;
     57        $robots = "Sitemap: https://{$blog_details->domain}/plugins/sitemap.xml\n" . $robots;
     58        // $robots = "Sitemap: https://{$blog_details->domain}/themes/sitemap.xml\n" . $robots;
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.