[wp-trac] [WordPress Trac] #19952: Passing an empty array into wp_get_object_terms results in an invalid query

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 3 05:19:08 UTC 2012


#19952: Passing an empty array into wp_get_object_terms results in an invalid query
--------------------------+------------------------------
 Reporter:  batmoo        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by batmoo):

 * keywords:   => has-patch


Comment:

 Attached patch checks for empty ids and taxonomies passed in and returns
 an empty array.

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


More information about the wp-trac mailing list