[wp-trac] [WordPress Trac] #53543: Taxonomy Rest Controller return non numeric array

WordPress Trac noreply at wordpress.org
Mon Jun 28 17:15:47 UTC 2021


#53543: Taxonomy Rest Controller return non numeric array
---------------------------+-----------------------------
 Reporter:  loriminciotti  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:
 Severity:  critical       |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+-----------------------------
 In the GetItems function get_items of class-wp-rest-taxonomies-
 controller.php the response is not a numeric array but an associative
 array. This cause a bug when call Rest api with global parameter _field.
 In the function rest_filter_response_fields in rest-api.php there is a
 check if array is numeric, so this check is not passed and the api return
 an empty array.

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


More information about the wp-trac mailing list