[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
Tue Feb 21 20:20:51 UTC 2012


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

 * owner:   => duck_
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [19975]:
 {{{
 #!CommitTicketReference repository="" revision="19975"
 Stop invalid SQL syntax by bailing from wp_get_object_terms() if
 $object_ids or $taxonomies is empty. Props batmoo. Fixes #19952.
 }}}

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


More information about the wp-trac mailing list