WordPress.org

Making WordPress.org

Changeset 9350


Ignore:
Timestamp:
12/16/2019 05:18:03 AM (19 months ago)
Author:
dd32
Message:

Make: Ensure that make.wordpress.org/robots.txt works without a statically defined file.

See #4559.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php

    r8924 r9350  
    2828    // Ensure all non-post routes 404, as this site isn't like most others.
    2929    if (
    30         ( ! is_admin() && $query->is_main_query() && ! $posts ) ||
     30        ( ! is_admin() && $query->is_main_query() && ! $query->is_robots() && ! $posts ) ||
    3131        ( ! is_admin() && $query->is_main_query() && $query->is_post_type_archive( 'meeting' ) && $query->get('paged') > 1 ) // Pagination on the query is explicitly disabled, so this doens't 404
    3232    ) {
Note: See TracChangeset for help on using the changeset viewer.