pre_replace /e deprecated -> callback for PHP 5.6
-
Hello,
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!
-
It looks you are using the free version of wordpress.org. their support is at https://wordpress.org/support/forums/.
But you won’t get support as wordpress 2 is very old and totally insecure. Also it is no longer supported. The only solution is upgrading to wordpress 5.0.2 -
- The topic ‘pre_replace /e deprecated -> callback for PHP 5.6’ is closed to new replies.