Changeset 9202
- Timestamp:
- 10/17/2019 06:24:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r9186 r9202 38 38 39 39 /** 40 * Outputs a 'noindex,follow' meta tag for search results. 41 */ 42 function no_robots_search_results() { 43 if ( is_search() ) { 40 * Outputs a 'noindex,follow' `meta` tag when appropriate. 41 * 42 * Currently applies to: 43 * - date-based archives 44 * - search results 45 */ 46 function no_robots() { 47 if ( 48 is_search() 49 || 50 is_date() 51 ) { 44 52 wp_no_robots(); 45 53 } 46 54 } 47 add_action( 'wp_head', __NAMESPACE__ . '\no_robots _search_results', 9 );55 add_action( 'wp_head', __NAMESPACE__ . '\no_robots', 9 ); 48 56 49 57
Note: See TracChangeset
for help on using the changeset viewer.