Commit 9d93e9f5 authored by Dave Reid's avatar Dave Reid

Issue #2392579 by davexoxide, Dave Reid: Rebuild should skip excluded bundles.

parent abb7002f
......@@ -461,6 +461,13 @@ function xmlsitemap_rebuild_batch_fetch($entity, &$context) {
$query->addMetaData('entity', $entity);
$query->addMetaData('entity_info', $info);
if ($types = xmlsitemap_get_link_type_enabled_bundles($entity)) {
$query->entityCondition('bundle', $types, 'IN');
else {
// If no enabled bundle types, skip everything else.
if (!isset($context['sandbox']['max'])) {
$count_query = clone $query;
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