Simplify sanitize_key() and use it in more places
|Reported by:||ryan||Owned by:|
sanitize_key() does some unnecessary work that can be eliminated.
sanitize_user() is still being called in places where sanitize_key() should be used and can burn up to a percent of page load time. It is called 26 times for a default install. Using a simplified sanitize_key() instead of sanitize_user() will save a little time.