Last active
July 17, 2018 09:15
-
-
Save xavierroy/b5a2077bcdcfe395a6dc4d7449247e5b to your computer and use it in GitHub Desktop.
Fix for deprecated function in Search Everything plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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