[wp-trac] [WordPress Trac] #31098: Filter wp_get_object_terms sends the wrong $taxonomies value

WordPress Trac noreply at wordpress.org
Wed Nov 19 08:26:09 UTC 2025


#31098: Filter wp_get_object_terms sends the wrong $taxonomies value
--------------------------+------------------------
 Reporter:  PhoenixML     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Taxonomy      |     Version:  2.8
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by philipzimmerm56):

 In the function wp_get_object_terms(), at the end, the value of
 $taxonomies (which should either be a slug string or an array of slugs) is
 overwritten and becomes a string from the sql query with single quotes
 before it is sent through the filter 'wp_get_object_terms'.

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


More information about the wp-trac mailing list