Changeset 37903 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 06/29/2016 01:56:32 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r37726 r37903 228 228 $this->send_header( 'Content-Type', $content_type . '; charset=' . get_option( 'blog_charset' ) ); 229 229 $this->send_header( 'X-Robots-Tag', 'noindex' ); 230 231 $api_root = get_rest_url(); 232 if ( ! empty( $api_root ) ) { 233 $this->send_header( 'Link', '<' . esc_url_raw( $api_root ) . '>; rel="https://api.w.org/"' ); 234 } 230 235 231 236 /*
Note: See TracChangeset
for help on using the changeset viewer.