[wp-trac] [WordPress Trac] #18828: function wp_get_object_terms() passes sql data into `wp_get_object_terms` filter for $taxonomies

WordPress Trac noreply at wordpress.org
Fri Mar 6 10:36:45 UTC 2015


#18828: function wp_get_object_terms() passes sql data into `wp_get_object_terms`
filter for $taxonomies
-------------------------------------------------+-------------------------
 Reporter:  postpostmodern                       |       Owner:
     Type:  defect (bug)                         |  boonebgorges
 Priority:  normal                               |      Status:  reopened
Component:  Taxonomy                             |   Milestone:  4.2
 Severity:  normal                               |     Version:  2.8
 Keywords:  dev-feedback needs-docs has-patch    |  Resolution:
  needs-testing                                  |     Focuses:
-------------------------------------------------+-------------------------
Changes (by doublesharp):

 * keywords:  dev-feedback needs-docs => dev-feedback needs-docs has-patch
     needs-testing
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @boonebgorges This same behavior is applied to the $object_ids as well -
 it is passed as a SQL fragment rather than an array of IDs. The array is
 imploded just after the taxonomy array with:

 {{{
 $object_ids = implode(', ', $object_ids);
 }}}

 This differs from your documentation on the `get_object_terms` filter.
 Instead of a single ID or array of IDs, it will be a comma separated
 string as it is currently implemented.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18828#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list