• 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)
  • Thank you vashishthask for sharing.
    I still run last free Version 1.9.9.9.8, is your code relevant to that version?

    It would be great if someone would release a Fork version of the free version.
    That is the best plugin ever, I don’t see any spam in my blog at all.

    • This reply was modified 3 years, 10 months ago by calisun.
Viewing 1 replies (of 1 total)
  • The topic ‘Spamshield create_function() deprecated error fixed’ is closed to new replies.