Opened 20 hours ago
Last modified 12 hours ago
#64152 assigned defect (bug)
REST comments endpoint does not return children for notes
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | trunk |
| Component: | REST API | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
When requesting the notes comment type from the WP_REST_Comments_Controller, children are not returned. This works correctly with regular comment types.
I have PR prepped with tests to correct this - the fix was to updated the get_children() call to include the parent comment's type.
Change History (2)
This ticket was mentioned in PR #10420 on WordPress/wordpress-develop by @adamsilverstein.
20 hours ago
#1
- Keywords has-patch has-unit-tests added
@Mamaduka commented on PR #10420:
12 hours ago
#2
Would also include the patch from https://github.com/WordPress/gutenberg/pull/72561 here. I was planning to create a sync PR, but I think it makes sense to do it here.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64152