[wp-trac] [WordPress Trac] #18828: function wp_get_object_terms() passes sql data into `wp_get_object_terms` filter for $taxonomies
WordPress Trac
noreply at wordpress.org
Tue May 13 22:02:44 UTC 2014
#18828: function wp_get_object_terms() passes sql data into `wp_get_object_terms`
filter for $taxonomies
------------------------------------+-----------------------------
Reporter: postpostmodern | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------------
Changes (by doublesharp):
* keywords: has-patch => has-patch dev-feedback
Comment:
The same issue applies to `$object_ids` as well - its type is changed from
an `array` to a `string` before it is passed to the `wp_get_object_terms`
filter. All of the caveats of use by plugins, etc apply as well but I am
attaching a patch that updates both the `$taxonomy` (array) to
`$_taxonomy` (string) and `$object_ids` (array) to `$_object_ids`
(string).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18828#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list