Spamshield create_function() deprecated error fixed
-
I made the relevant changes in the plugin code and changed the problem line from
return preg_replace_callback( $regex_phrase, create_function( '$matches', 'return '.$encode_method.'($matches[0]);' ), $string );
to
return preg_replace_callback( $regex_phrase, function($matches) { $encode_method = 'rs_wpss_encode_str'; return $encode_method.($matches[0]); }, $string );
which fixed the deprecated error problem.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Spamshield create_function() deprecated error fixed’ is closed to new replies.