Making WordPress.org

Changeset 13069


Ignore:
Timestamp:
12/19/2023 03:07:21 AM (7 months ago)
Author:
dd32
Message:

Robots: Include the Developer Blog sitemaps.

See #6427.

File:
1 edited

Legend:

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

    r12456 r13069  
    8080    }
    8181
     82    /*
     83     * Add the Developer Blog sitemap.
     84     */
     85    if ( 'developer.wordpress.org' === $blog_details->domain ) {
     86        $robots = "Sitemap: https://developer.wordpress.org/news/sitemap.xml\n" .
     87                  "Sitemap: https://developer.wordpress.org/news/news-sitemap.xml\n" .
     88                  $robots;
     89    }
     90
    8291    return $robots;
    8392}
Note: See TracChangeset for help on using the changeset viewer.