Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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