Forums
(@samgh)
6 years, 6 months ago
Resolved using the solution described here: https://ww.wp.xz.cn/support/topic/plugin-breaks-with-php-7-3/#post-12164934
For me, at least, I needed to do it with doublequotes. Here’s the version that worked for me:
return preg_replace("/[^\w\-+#]/msi", '', $id);