[wp-trac] [WordPress Trac] #20202: Filter pre_post_type with sanitize_key()

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 8 12:04:43 UTC 2012


#20202: Filter pre_post_type with sanitize_key()
--------------------------+-----------------------
 Reporter:  duck_         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.4
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 Currently the post_type field is sanitized with sanitize_user(). It would
 make more sense to use sanitize_key() for this because

  1. register_post_type() uses sanitize_key()
  1. It's a lighter function

 See #14910.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20202>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list