Skip to content

Yoast SEO sitemap generation conflict #169

@ernestmarcinko

Description

@ernestmarcinko

In WPDRMS\ASP\Hooks\Filters Asset.php the shutdown method should check if the request is for an .xml file.

function onShutdown() {
  if (
	  wd_asp()->manager->getContext() == 'frontend' && !wp_is_json_request()
	  && !isset($_POST['ags_wc_filters_ajax_shop']) // divi shop live pagination
	  && !(
		  isset($_SERVER['REQUEST_URI']) &&
		  substr_compare($_SERVER['REQUEST_URI'], '.xml', -strlen('.xml')) === 0
	  ) // Skip for XML document requests
  ) {
	  Manager::instance()->printBackup();
  }
}

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions