[wp-trac] [WordPress Trac] #17646: wp_get_object_terms should return arrays of integers for IDs and tt_IDs

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 2 01:13:28 UTC 2011


#17646: wp_get_object_terms should return arrays of integers for IDs and tt_IDs
---------------------------+------------------------------
 Reporter:  simonwheatley  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Taxonomy       |     Version:  3.2
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |
---------------------------+------------------------------

Comment (by dd32):

 IMO, `sanitize_term_field()` should be updated to `absint()` the term_id
 field. `wp_get_object_terms()` should call the sanitization functions.
 This would also take care of tickets such as  #17652

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


More information about the wp-trac mailing list