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`).
This commit is contained in:
parent
29bc6c1ef7
commit
59a6440fd8
@ -45,7 +45,7 @@ class pluginRobots extends Plugin {
|
||||
}
|
||||
|
||||
if (!empty($robots)) {
|
||||
$robots = implode(' ', $robots);
|
||||
$robots = implode(',', $robots);
|
||||
$html .= '<meta name="robots" content="'.$robots.'">'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
@ -63,4 +63,4 @@ class pluginRobots extends Plugin {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user