[wp-trac] [WordPress Trac] #11835: get_objects_in_term source documentation mentions term not term_id

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 9 02:57:10 UTC 2010


#11835: get_objects_in_term source documentation mentions term not term_id
--------------------------+-------------------------------------------------
 Reporter:  Warll         |       Owner:  filosofo  
     Type:  defect (bug)  |      Status:  new       
 Priority:  low           |   Milestone:  Unassigned
Component:  Taxonomy      |     Version:  2.9.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 After trying to pass get_objects_in_term a full term, an object, and then
 trying to pass it a term slug I dug a bit deeper and came across $terms =
 array_map('intval', $terms);

 That lead me to try and feed get_objects_in_term an integer, which worked.
 I feel a bit cheated that the source documentation didn't mention this
 rather critical clause.

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


More information about the wp-trac mailing list