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

WordPress Trac noreply at wordpress.org
Thu Nov 21 10:48:34 UTC 2024


#62500: REST API: Terms controller doesn't respect taxonomy's default query args
-----------------------------+--------------------
 Reporter:  Bernhard Reiter  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  6.8
Component:  REST API         |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+--------------------
 It is possible to supply a default set of default query `args` to
 [`register_taxonomy()`](https://developer.wordpress.org/reference/functions/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.

 However, those default query args are not respected by the Terms REST API
 controller, if the request doesn't contain a post ID.

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


More information about the wp-trac mailing list