From 3cd7fa77200caa7d73279117bf0b8efdae183a9b Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Fri, 21 Jun 2019 10:27:26 +0200 Subject: [PATCH] Remove page from Sitemap when are setted as noindex #1054 --- bl-plugins/sitemap/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-plugins/sitemap/plugin.php b/bl-plugins/sitemap/plugin.php index 8119323d..ba2cf8d3 100644 --- a/bl-plugins/sitemap/plugin.php +++ b/bl-plugins/sitemap/plugin.php @@ -62,7 +62,7 @@ class pluginSitemap extends Plugin { try { // Create the page object from the page key $page = new Page($pageKey); - if (!$page->noindex() && !$page->noarchive()) { + if (!$page->noindex()) { $xml .= ''; $xml .= ''.$page->permalink().''; $xml .= ''.$page->date(SITEMAP_DATE_FORMAT).'';