WordPress.org

Making WordPress.org

Changeset 10840


Ignore:
Timestamp:
03/23/2021 02:33:04 AM (9 months ago)
Author:
dd32
Message:

Robots: Add a specific robots.txt value for s.w.org.

See #5668.

File:
1 edited

Legend:

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

    r10675 r10840  
    2020                   "Allow: /locale/*/stats/plugins/$\n" .
    2121                   "Allow: /locale/*/stats/themes/$\n";
    22     } else {
     22
     23    } elseif ( 'wordpress.org' === $blog_details->domain ) {
     24        // WordPress.org/search/ should not be indexed.
    2325        $robots .= "\nUser-agent: *\n" .
    2426                   "Disallow: /search\n";
     27
     28    } elseif ( 's-origin.wordpress.org' === $blog_details->domain ) {
     29        // Placeholder for the s.w.org domain. See https://meta.trac.wordpress.org/ticket/5668
     30        // Intentional overwite of value.
     31        $robots = "User-agent: *\n" .
     32                  "Disallow:\n";
     33
    2534    }
    2635
Note: See TracChangeset for help on using the changeset viewer.