Commit d5c18d02 authored by tucho's avatar tucho Committed by RenatoG

Issue #2907878 by tucho, RenatoG: Use HTTPS protocol when notifying search engines

parent 40a5d5a7
......@@ -232,7 +232,7 @@ function hook_xmlsitemap_element_alter(array &$element, array $link, $sitemap) {
* For example add an xmlns:video attribute:
*
* @codingStandardsIgnoreStart
* <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
* <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="https://www.google.com/schemas/sitemap-video/1.1">
*
* @param array $attributes
* An associative array of attributes to use in the root element of an XML
......@@ -242,7 +242,7 @@ function hook_xmlsitemap_element_alter(array &$element, array $link, $sitemap) {
*/
function hook_xmlsitemap_root_attributes_alter(&$attributes, $sitemap) {
// @codingStandardsIgnoreEnd
$attributes['xmlns:video'] = 'http://www.google.com/schemas/sitemap-video/1.1';
$attributes['xmlns:video'] = 'https://www.google.com/schemas/sitemap-video/1.1';
}
/**
......
......@@ -217,13 +217,13 @@ function xmlsitemap_engines_get_engine_info($engine = NULL) {
function xmlsitemap_engines_xmlsitemap_engine_info() {
$engines['google'] = array(
'name' => t('Google'),
'url' => 'http://www.google.com/webmasters/tools/ping?sitemap=[sitemap]',
'help url' => 'http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156184',
'url' => 'https://www.google.com/webmasters/tools/ping?sitemap=[sitemap]',
'help url' => 'https://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156184',
);
$engines['bing'] = array(
'name' => t('Bing'),
'url' => 'http://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]',
'help url' => 'http://www.bing.com/webmaster',
'url' => 'https://www.bing.com/webmaster/ping.aspx?siteMap=[sitemap]',
'help url' => 'https://www.bing.com/webmaster',
);
return $engines;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment