WordPress.org

Making WordPress.org

Changeset 7308


Ignore:
Timestamp:
06/14/2018 05:02:15 PM (3 years ago)
Author:
obenland
Message:

Plugins: Prevent advanced tab from being indexed

Props jonoaldersonwp, johnbillion.
Fixes #3648..

File:
1 edited

Legend:

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

    r7286 r7308  
    307307        printf( '<meta name="thumbnail" content="%s" />' . "\n", esc_url( $icon['icon_2x'] ?: $icon['icon'] ) );
    308308    }
     309
     310    // Prevent duplicate search engine results.
     311    if ( get_query_var( 'plugin_advanced' ) ) {
     312        echo '<meta name="robots" content="noindex, follow" />' . "\n";
     313    }
    309314}
    310315add_action( 'wp_head', __NAMESPACE__ . '\social_meta_data' );
Note: See TracChangeset for help on using the changeset viewer.