WordPress – Crayon Plugin bugfix
October 26th, 2019 10:27 PM | by Alfred Markus Paar | Posted in Allgemein
After install Crayon Syntax Highlighter version 2.8.4 there seems to be a bug when creating a new post.
Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/.si78/tes/8site7062213/web/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
This issue was also reported and here and a fix was mentioned, but not here.
To fix the issue the regex has to be corrected:
return preg_replace('/[^\w-+#]/msi', '', $id);
return preg_replace('/[^\w\-+#]/msi', '', $id);
Leave a Reply