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

WordPress Trac noreply at wordpress.org
Sun Aug 18 18:00:20 UTC 2024


#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 hredhd232):

 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'.
 Example: " 'category,'post_tags' "
 It should be: array('category', 'post_tags') ?

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


More information about the wp-trac mailing list