Removed anonymous functions in filters.php