Commit b8e4745c authored by dww's avatar dww Committed by pifagor
Browse files

Issue #2745695 by ChristianAdamski, dww, alexandre.todorov, ivangf15, pifagor,...

Issue #2745695 by ChristianAdamski, dww, alexandre.todorov, ivangf15, pifagor, a.milkovsky, Dave Reid, slasher13, Chris Burge: Rebuild always include all link types
parent 4f848d82
...@@ -2672,14 +2672,12 @@ function xmlsitemap_get_rebuildable_link_types() { ...@@ -2672,14 +2672,12 @@ function xmlsitemap_get_rebuildable_link_types() {
// If the entity is missing a rebuild callback, skip. // If the entity is missing a rebuild callback, skip.
continue; continue;
} }
if (!empty($info['entity keys']['bundle']) && !xmlsitemap_get_link_type_enabled_bundles($entity)) { if (!empty($info['bundles']) && !xmlsitemap_get_link_type_enabled_bundles($entity)) {
// If the entity has bundles, but no enabled bundles, skip since // If the entity has bundles, but no enabled bundles, skip since
// rebuilding wouldn't get any links. // rebuilding wouldn't get any links.
continue; continue;
} }
else { $rebuild_types[] = $entity;
$rebuild_types[] = $entity;
}
} }
return $rebuild_types; return $rebuild_types;
......
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