Update ping URLs

This commit is contained in:
Diego Najar 2019-08-06 10:54:21 +02:00 committed by GitHub
parent 82501c9c9c
commit 83e8cf74c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,12 +86,12 @@ class pluginSitemap extends Plugin {
private function ping()
{
if ($this->getValue('pingGoogle')) {
$url = 'https://www.google.com/webmasters/sitemaps/ping?sitemap='.Theme::sitemapUrl();
$url = 'http://www.google.com/ping?sitemap='.Theme::sitemapUrl();
TCP::http($url, 'GET', true, 3);
}
if ($this->getValue('pingBing')) {
$url = 'https://www.bing.com/webmaster/ping.aspx?sitemap='.Theme::sitemapUrl();
$url = 'https://www.bing.com/ping?sitemap='.Theme::sitemapUrl();
TCP::http($url, 'GET', true, 3);
}
}