Changeset 7787
- Timestamp:
- 10/27/2018 05:27:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r7633 r7787 292 292 } 293 293 294 // Prevent duplicate search engine results. 295 if ( get_query_var( 'plugin_advanced' ) || is_search() ) { 296 echo '<meta name="robots" content="noindex, follow" />' . "\n"; 297 } 298 294 299 if ( ! is_singular( 'plugin' ) ) { 295 300 return; … … 319 324 printf( '<meta name="thumbnail" content="%s" />' . "\n", esc_url( $icon['icon_2x'] ?: $icon['icon'] ) ); 320 325 } 321 322 // Prevent duplicate search engine results.323 if ( get_query_var( 'plugin_advanced' ) ) {324 echo '<meta name="robots" content="noindex, follow" />' . "\n";325 }326 326 } 327 327 add_action( 'wp_head', __NAMESPACE__ . '\social_meta_data' );
Note: See TracChangeset
for help on using the changeset viewer.