Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#31098 closed defect (bug) (duplicate)

Filter wp_get_object_terms sends the wrong $taxonomies value

Reported by: PhoenixML Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Taxonomy Keywords:
Focuses: Cc:


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'.

Example: " 'category,'post_tags' "
It should be: array('category', 'post_tags')

Change History (1)

#1 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 4.1 to 2.8

Duplicate of #18828.

Note: See TracTickets for help on using tickets.