Changeset 10840 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php
- Timestamp:
- 03/23/2021 02:33:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php
r10675 r10840 20 20 "Allow: /locale/*/stats/plugins/$\n" . 21 21 "Allow: /locale/*/stats/themes/$\n"; 22 } else { 22 23 } elseif ( 'wordpress.org' === $blog_details->domain ) { 24 // WordPress.org/search/ should not be indexed. 23 25 $robots .= "\nUser-agent: *\n" . 24 26 "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 25 34 } 26 35
Note: See TracChangeset
for help on using the changeset viewer.