• Hi, using the plugin under php7 give the following

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

    Its line 30. You need to modify the line to

    function wpFlashInsertSwf($content) {
    	return preg_replace_callback("'\[swf:(.*?)\]'", function($subs){ return stripslashes(wpFlashParseMacro($subs[1]));}, $content);
    }

    Greetings RS

  • The topic ‘php 7 Bug’ is closed to new replies.