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

WordPress Trac noreply at wordpress.org
Thu Jan 31 18:16:03 UTC 2013


#22324: sanitize_post_field() forgets some integer fields
------------------------------+-----------------------------
 Reporter:  GeertDD           |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  3.6
Component:  General           |     Version:  3.4.2
 Severity:  minor             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------------
Changes (by westi):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 I'm not 100% sure this is a good change to make without further review and
 testing.

 One thing that is probably broken by this change is anything that does
 post author highlighting of comments because '''get_comments''' returns
 straight db data with everything as strings.

 We use a value and type '''===''' check here -
 https://core.trac.wordpress.org/browser/trunk/wp-includes/comment-
 template.php#L316

 Which now will fail as one will be an int and one a string.

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


More information about the wp-trac mailing list