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

WordPress Trac noreply at wordpress.org
Wed Jan 30 19:09:34 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:  needs-unit-tests  |
------------------------------+-----------------------------
Changes (by bpetty):

 * keywords:  has-patch commit needs-unit-tests => needs-unit-tests
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Re-opening for new unit test failures. The following tests need updates if
 this is correct:

 {{{
 1) Tests_XMLRPC_mw_getPost::test_valid_post
 Failed asserting that 286 is of type "string".

 /wordpress-tests/tests/xmlrpc/mw/getPost.php:57

 2) Tests_XMLRPC_mw_getRecentPosts::test_valid_post
 Failed asserting that 292 is of type "string".

 /wordpress-tests/tests/xmlrpc/mw/getRecentPosts.php:62

 3) Tests_XMLRPC_wp_getPage::test_valid_page
 Failed asserting that 368 is of type "string".

 /wordpress-tests/tests/xmlrpc/wp/getPage.php:56

 4) Tests_XMLRPC_wp_getPost::test_valid_post
 Failed asserting that 387 is of type "string".

 /wordpress-tests/tests/xmlrpc/wp/getPost.php:51
 }}}

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


More information about the wp-trac mailing list