Changing deprecated preg_replace with 'e' to preg_replace_callback

https://github.com/wolfcms/wolfcms/issues/568