Preg_replace Error
-
Not sure why the other discussion was closed to new replies, but I ran into the same issue: Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Here’s what we have to replace the deprecated preg_replace function:
$result = preg_replace_callback( "'\[swf:(.*?)\]'", function($matches) { return stripslashes(wpFlashParseMacro($matches[1])); } , $content ); return $result;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Preg_replace Error’ is closed to new replies.