Declare methods called statically from hooks as static.

This fixes strict warnings by PHP.
Always attach to "pre_get_posts" hook. Can't use is_search when adding filters.
Merge branch 'fix-remove-from-search'