Incorrect "Robots: none" tag?

https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
This commit is contained in:
Gregory K 2013-11-14 07:40:33 -05:00
parent f7c3362e8a
commit eba9edb30b
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class WC_Download_Handler {
if ( strstr( $file_name, '?' ) )
$file_name = current( explode( '?', $file_name ) );
header( "Robots: none" );
header( "X-Robots-Tag: noindex, nofollow", true );
header( "Content-Type: " . $ctype );
header( "Content-Description: File Transfer" );
header( "Content-Disposition: attachment; filename=\"" . $file_name . "\";" );