Making WordPress.org


Ignore:
Timestamp:
12/20/2023 02:13:11 AM (9 months ago)
Author:
dd32
Message:

Make: noindex the o2 'recent comments' view.

Props tellyworth, jonoaldersonwp, dd32.
Fixes #5334.
Closes https://github.com/WordPress/wordpress.org/pull/122.

File:
1 edited

Legend:

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

    r13072 r13073  
    5050
    5151/**
    52  * noindex the Mentions archives.
     52 * noindex certain archives.
    5353 */
    5454function no_robots( $noindex ) {
     
    5656        $noindex = true;
    5757    }
     58
     59    if ( get_query_var( 'o2_recent_comments' ) ) {
     60        $noindex = true;
     61    }
     62
    5863
    5964    // This is used by https://github.com/WordPress/phpunit-test-reporter/blob/master/src/class-display.php on the test reporter page
Note: See TracChangeset for help on using the changeset viewer.