[wp-trac] [WordPress Trac] #38504: Term query endpoints should use `WP_Term_Query`

WordPress Trac noreply at wordpress.org
Thu Oct 27 01:41:09 UTC 2016


#38504: Term query endpoints should use `WP_Term_Query`
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38974"]:
 {{{
 #!CommitTicketReference repository="" revision="38974"
 REST API: Use `wp_get_object_terms()` when fetching terms for a post
 object.

 The WP-API plugin originally used a custom method for fetching object
 terms in a way that supported the object cache and also accepted all
 parameters for `get_terms()`. In [38667], the internals of
 `wp_get_object_terms()` were modified to use `WP_Term_Query`, thus
 delivering in a native fashion the features that the API had
 previously achieved bespokely.

 Fixes #38504.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38504#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list