From eba9edb30bb95280257242806f32e5ea6b9c399e Mon Sep 17 00:00:00 2001 From: Gregory K Date: Thu, 14 Nov 2013 07:40:33 -0500 Subject: [PATCH] Incorrect "Robots: none" tag? https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag --- includes/class-wc-download-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-download-handler.php b/includes/class-wc-download-handler.php index 0cfcb0efd68..5290555307c 100644 --- a/includes/class-wc-download-handler.php +++ b/includes/class-wc-download-handler.php @@ -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 . "\";" );