Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 8 weeks ago

#31098 closed defect (bug) (duplicate)

Filter wp_get_object_terms sends the wrong $taxonomies value

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

Description

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