My wp theme get an error when I upgrade php version 5.6 to 7.1. I don’t know php, but I tried to fix with documentations this time there were some shortcomings in post content.
I don’t know how can i fix, please help
In error logs:
PHP Warning: preg_replace_callback(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/user/public_html/abc.com/wp-content/themes/theme/functions.php on line 280
theme codes:
function sd_code_filter($content_text) { $content_text = preg_replace(’!(<pre.?>)(.?)!ise’, " ‘$1’ . stripslashes( str_replace(array(’<’,’>’),array(’<’,’>’),’$2’) ) . ‘’ ", $content_text); return $content_text; }