Skip to content
Permalink
Browse files

Use comma for implode robots meta tag

According to http://www.robotstxt.org/meta.html and https://www.webmasterworld.com/forum93/669.htm using only a space between the values probably isn't the proper syntax and could ignore all values (perhaps that explains why Google ignored my `noindex nofollow noarchive`).
  • Loading branch information...
ltGuillaume committed Feb 13, 2019
1 parent 29bc6c1 commit 59a6440fd806f28f9ef7c9cf2930e46d141ba6ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 bl-plugins/robots/plugin.php
@@ -45,7 +45,7 @@ public function siteHead()
}
if (!empty($robots)) {
$robots = implode(' ', $robots);
$robots = implode(',', $robots);
$html .= '<meta name="robots" content="'.$robots.'">'.PHP_EOL;
}
}
@@ -63,4 +63,4 @@ public function beforeAll()
}
}
}
}

0 comments on commit 59a6440

Please sign in to comment.
You can’t perform that action at this time.