[wp-trac] [WordPress Trac] #56618: REST API: Wrong field checked for `has_archive` inclusion

WordPress Trac noreply at wordpress.org
Wed Sep 21 22:04:12 UTC 2022


#56618: REST API: Wrong field checked for `has_archive` inclusion
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 The `has_archive` property was added to the REST API endpoint for post
 types in [54273]. However, the `hierarchical` field, not `has_archive`, is
 checked with `rest_is_field_included()` prior to including `has_archive`
 in the response.

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


More information about the wp-trac mailing list