• Resolved vazues

    (@vazues)


    The plugins breaks xsl files generated by new sitemap features added in WordPress Core 5.5. Corresponding regex needs adjusting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    I’ve been unable to replicate an issue with the XSL file on the XML Sitemap. This was tested using WordPress version 5.5 and CDN Enabler version 1.0.9.

    To troubleshoot this further, can you please provide a more detailed report on what issue is occurring in addition to a screenshot of your CDN Enabler settings?

    Anonymous User 16850768

    (@anonymized-16850768)

    I’ve been able to replicate this issue now. The current workaround until we can investigate this issue more thoroughly would be adding xsl to the Exclusions setting (e.g. .php,xsl).

    GitHub issue: https://github.com/keycdn/cdn-enabler/issues/19

    Thread Starter vazues

    (@vazues)

    Thanks for investigating and locating the issue.

    Have attempted the exclusion approach, but couldn’t get it to work. Instead, ended up just adding a filter to xsl output using wp_sitemaps_stylesheet_content (adding an additional space into the xls file where the markup was being broken).

    This seems to have solved the issue for now.

    If anyone finds it useful, here is my filter:

    function webme_sitemap_xsl($original) {
    return str_replace(‘indent=”yes”/>’, ‘indent=”yes” />’, $original);
    }
    add_filter(‘wp_sitemaps_stylesheet_content’, ‘webme_sitemap_xsl’);

    Look forward to a permanent solution with the regex causing it in the first place. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks sitemap XSL generated by WordPress 5.5’ is closed to new replies.