Filter pre_post_type with sanitize_key()
|Reported by:||duck_||Owned by:||duck_|
Currently the post_type field is sanitized with sanitize_user(). It would make more sense to use sanitize_key() for this because
- register_post_type() uses sanitize_key()
- It's a lighter function
Change History (2)
Note: See TracTickets for help on using tickets.