Issue #2940681 by fgm, Dave Reid: Fixed query in xmlsitemap_xmlsitemap_index_links() did not add bundle condition properly for all entity types.