Changeset 9864 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
- Timestamp:
- 05/13/2020 05:04:11 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r9818 r9864 286 286 287 287 /** 288 * Outputs `noindex,follow` robots tag for search results and author archives.289 */290 function wporg_themes_noindex() {291 if ( is_search() || is_author() ) {292 wp_no_robots();293 }294 }295 add_action( 'wp_head', 'wporg_themes_noindex' );296 297 /**298 288 * Overrides feeds to use a custom RSS2 feed which contains the current requests themes. 299 289 */ … … 309 299 die(); 310 300 } 311 add_filter( 'template_redirect', 'wporg_themes_custom_feed' );301 add_filter( 'template_redirect', 'wporg_themes_custom_feed', 9999 ); 312 302 313 303 /**
Note: See TracChangeset
for help on using the changeset viewer.