[wp-trac] [WordPress Trac] #40496: get_the_terms() doesn't respect register_taxonomy()'s 'orderby' => 'term_order'
WordPress Trac
noreply at wordpress.org
Fri Apr 21 19:18:02 UTC 2017
#40496: get_the_terms() doesn't respect register_taxonomy()'s 'orderby' =>
'term_order'
-------------------------------------+---------------------------
Reporter: danielbachhuber | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.5
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"40514"]:
{{{
#!CommitTicketReference repository="" revision="40514"
Restore support for taxonomy 'args' override when querying object terms.
[7520] introduced an undocumented feature whereby developers could
register a custom taxonomy with an 'args' parameter, consisting of
an array of config params that, when present, override corresponding
params in the `$args` array passed to `wp_get_object_terms()` when
using that function to query for terms in the specified taxonomy.
The `wp_get_object_terms()` refactor in [38667] failed to respect
this secret covenant, and the current changeset atones for the
transgression.
Ports [40513] to the 4.7 branch.
Props danielbachhuber.
Fixes #40496.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40496#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list