[wp-trac] [WordPress Trac] #22324: sanitize_post_field() forgets some integer fields

WordPress Trac noreply at wordpress.org
Tue Oct 30 20:58:33 UTC 2012


#22324: sanitize_post_field() forgets some integer fields
-----------------------------+-------------------------
 Reporter:  GeertDD          |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.4.2            |   Severity:  minor
 Keywords:  has-patch        |
-----------------------------+-------------------------
 The `post_author` and `comment_count` properties of the `$post` object
 should be sanitized to integer values instead of strings (the default data
 type).

 Both those fields are stored in BIGINT(20) columns in the posts table.
 They can only contain integer values.

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


More information about the wp-trac mailing list