#20202 closed defect (bug) (fixed)
Filter pre_post_type with sanitize_key()
Reported by: | duck_ | Owned by: | duck_ |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
See #14910.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In [20234]: