#56618 closed defect (bug) (fixed)
REST API: Wrong field checked for `has_archive` inclusion
| Reported by: | dlh | Owned by: | jorgefilipecosta |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | REST API | Version: | 6.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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.
Change History (6)
This ticket was mentioned in PR #3308 on WordPress/wordpress-develop by dlh01.
4 years ago
#1
#2
@
4 years ago
- Milestone Awaiting Review → 6.1
Let's milestone this to 6.1.
The patch looks good to me, and is pretty straightforward, so I think we're good to go with it :)
#4
@
4 years ago
Thank you for proposing this fix and for the reviews. It was a mistake I did during the backporting and rebase. I'm going to commit the fix.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/56618