pHP 5.6 preg_replace /e deprecated stripslashes
-
on a very old WP install (2.0) I need to upgrade PHP to 5.6 (provider). Don’t want to put much effort in the site (upgrade WP).
I only need to change this line to a callback function – as a non-coder, I don’t know how!:
$pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' ", $pee);?
This is an example but I can’t adapt to my line.Any help much appreciated!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘pHP 5.6 preg_replace /e deprecated stripslashes’ is closed to new replies.