Skip to content

Instantly share code, notes, and snippets.

@xavierroy
Last active July 17, 2018 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xavierroy/b5a2077bcdcfe395a6dc4d7449247e5b to your computer and use it in GitHub Desktop.
Save xavierroy/b5a2077bcdcfe395a6dc4d7449247e5b to your computer and use it in GitHub Desktop.
Fix for deprecated function in Search Everything plugin
This is a replacement for the deprecated create_function() in search-everything.php of the Search Everything plugin.
//$search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] ));
$search_terms = array_filter(array_map( function($a) { return trim($a, "\\'\'\\n\\r ");}, $matches[0] ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment