diff --git a/docroot/sites/all/modules/contrib/xmlsitemap/xmlsitemap.module b/docroot/sites/all/modules/contrib/xmlsitemap/xmlsitemap.module index 9f4868b..dce2ce5 100644 --- a/docroot/sites/all/modules/contrib/xmlsitemap/xmlsitemap.module +++ b/docroot/sites/all/modules/contrib/xmlsitemap/xmlsitemap.module @@ -614,7 +614,10 @@ function xmlsitemap_link_save(array $link, array $context = array()) { module_invoke_all('xmlsitemap_link_update', $link, $context); } else { - drupal_write_record('xmlsitemap', $link); + // For new links being inserted we can skip items that access or status equals FALSE + if ($link['status'] && $link['access']) { + drupal_write_record('xmlsitemap', $link); + } module_invoke_all('xmlsitemap_link_insert', $link, $context); }