Changeset 10853
- Timestamp:
- 03/26/2021 10:15:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/functions.php
r10618 r10853 130 130 131 131 /** 132 * Sets 404 response for author archive requests. 133 */ 134 function jobswp_author_archives_404() { 135 if ( is_author() ) { 136 global $wp_query; 137 $wp_query->set_404(); 138 status_header( 404 ); 139 } 140 } 141 add_action( 'wp', 'jobswp_author_archives_404' ); 142 143 /** 132 144 * Outputs `noindex,follow` robots tag for appropriate pages. 133 145 *
Note: See TracChangeset
for help on using the changeset viewer.