WordPress 5.2 destroys structured data by adding rel=”noopener noreferrer” to shortcode output: How to display shortcode output without code change?

This feature was added in 5.2: https://core.trac.wordpress.org/ticket/43280

Basically there is nothing wrong with adding rel=”noopener noreferrer” to links, as it will protect from malicious comments or bad authors for instance.

Anyway I have a shortcode from some plugin which is generating structured data (rating stars) for a website and embedded via shortcode. Adding the rel-Attribute there breaks the structured data (as confirmed by https://search.google.com/structured-data/testing-tool/u/0/?hl=de).

How can I display a shortcode with the code preserved?

Read more here:: WordPress 5.2 destroys structured data by adding rel=”noopener noreferrer” to shortcode output: How to display shortcode output without code change?

Leave a Reply

Your email address will not be published. Required fields are marked *