• Hi

    My test site is running:
    – WP 5.4
    – WP Recipe Maker 5.11.1
    – Yoast 13.4.1

    and in the admin panel I’ll get:
    “SyntaxError: invalid regular expression flag s” in yoast-compatibility.js here

    
    data = data.replace(/<!-- wp:wp-recipe-maker\/recipe.*?\/wp:wp-recipe-maker\/[^\s]* -->/gms, '');

    after removing the s flag everything works correct.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error in yoast compatibility’ is closed to new replies.