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

WordPress Trac noreply at wordpress.org
Sun Jan 20 23:03:08 UTC 2013


#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:  3.6
Component:  Taxonomy             |     Version:  3.2
 Severity:  normal               |  Resolution:
 Keywords:  3.3-early has-patch  |
---------------------------------+------------------
Changes (by kurtpayne):

 * cc: kurtpayne (added)
 * milestone:  Future Release => 3.6


Comment:

 Patch looks good for the original report.  The object_id field is still
 coming through as a string.  Test code:

 {{{
 var_dump( wp_get_object_terms( get_the_ID(), 'category', array( 'fields'
 => 'all' ) ) );
 var_dump( wp_get_object_terms( get_the_ID(), 'category', array( 'fields'
 => 'all_with_object_id' ) ) );
 var_dump( wp_get_object_terms( get_the_ID(), 'category', array( 'fields'
 => 'id' ) ) );
 var_dump( wp_get_object_terms( get_the_ID(), 'category', array( 'fields'
 => 'tt_ids' ) ) );
 }}}

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


More information about the wp-trac mailing list