[wp-trac] [WordPress Trac] #62500: REST API: Terms controller doesn't respect taxonomy's default query args

WordPress Trac noreply at wordpress.org
Mon Nov 25 11:14:52 UTC 2024


#62500: REST API: Terms controller doesn't respect taxonomy's default query args
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  Bernhard Reiter
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  6.8
Component:  REST API         |     Version:  trunk
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Changes (by Bernhard Reiter):

 * owner:  (none) => Bernhard Reiter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59458" 59458]:
 {{{
 #!CommitTicketReference repository="" revision="59458"
 REST API: Terms: Respect taxonomy's default query args.

 It is possible to supply a set of default query `args` to
 `register_taxonomy()` which will be used when querying a list of terms --
 for example, `orderby` in order to specify how the resulting list of terms
 should be sorted.

 The Terms REST API controller previously respected these default query
 args only if the request included a post ID. This changeset makes it so
 that the default args will also be respected if no post ID is provided.

 Props bernhard-reiter, jsnajdr.
 Fixes #62500.
 }}}

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


More information about the wp-trac mailing list