[wp-trac] [WordPress Trac] #31098: Filter wp_get_object_terms sends the wrong $taxonomies value
WordPress Trac
noreply at wordpress.org
Thu Jan 22 16:24:37 UTC 2015
#31098: Filter wp_get_object_terms sends the wrong $taxonomies value
--------------------------+-----------------------------
Reporter: PhoenixML | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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')
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31098>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list