Making WordPress.org


Ignore:
Timestamp:
02/08/2019 04:04:27 AM (8 years ago)
Author:
dd32
Message:

Support Forums: Output a noindex,follow robots tag for filtered review views.

Fixes #3943.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r7022 r8216  
    4646                        add_action( 'pre_get_posts', array( $this, 'no_found_rows' ) );
    4747                        add_filter( 'bbp_topic_pagination', array( $this, 'add_filter_topic_pagination' ) );
     48
     49                        // <meta robots="noindex,follow"> for filtered views.
     50                        add_filter( 'wp_head', 'wp_no_robots' );
    4851                }
    4952
Note: See TracChangeset for help on using the changeset viewer.