Making WordPress.org

Changeset 9068


Ignore:
Timestamp:
07/22/2019 12:45:00 AM (5 years ago)
Author:
dd32
Message:

Themes: deindex Author archives in the theme directory.

Fixes #4549.

File:
1 edited

Legend:

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

    r9065 r9068  
    264264
    265265/**
    266  * Outputs `noindex,follow` robots tag for search results.
    267  */
    268 function wporg_themes_noindex_for_search() {
    269     if ( is_search() ) {
     266 * Outputs `noindex,follow` robots tag for search results and author archives.
     267 */
     268function wporg_themes_noindex() {
     269    if ( is_search() || is_author() ) {
    270270        wp_no_robots();
    271271    }
    272272}
    273 add_action( 'wp_head', 'wporg_themes_noindex_for_search' );
     273add_action( 'wp_head', 'wporg_themes_noindex' );
    274274
    275275/**
Note: See TracChangeset for help on using the changeset viewer.