[wp-trac] [WordPress Trac] #17646: wp_get_object_terms should return arrays of integers for IDs and tt_IDs
WordPress Trac
noreply at wordpress.org
Tue Nov 5 01:18:03 UTC 2013
#17646: wp_get_object_terms should return arrays of integers for IDs and tt_IDs
-----------------------------+-----------------------------
Reporter: simonwheatley | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.8
Component: Taxonomy | Version: 3.2
Severity: normal | Resolution: fixed
Keywords: has-patch early |
-----------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"26010"]:
{{{
#!CommitTicketReference repository="" revision="26010"
Cast proper fields to `int` when returning from `wp_get_object_terms()`.
Add `term_taxonomy_id` and `object_id` to the list in `sanitize_term()`
and `sanitize_term_field()`.
Fixes #17646. Adds unit tests.
Props simonwheatley, dd32, kovshenin.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17646#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list