Opened 4 months ago
Closed 4 months ago
#64152 closed defect (bug) (fixed)
REST comments endpoint does not return children for notes
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | 6.9 |
| Component: | REST API | Keywords: | has-patch has-unit-tests commit |
| 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 (5)
This ticket was mentioned in PR #10420 on WordPress/wordpress-develop by @adamsilverstein.
4 months ago
#1
- Keywords has-patch has-unit-tests added
@Mamaduka commented on PR #10420:
4 months 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.
@adamsilverstein commented on PR #10420:
4 months ago
#3
I am closing this ticket in favor of https://github.com/WordPress/wordpress-develop/pull/10405 - I moved the fix and unit test over to that PR since the issue being fixed is introduced in that PR.
Trac ticket: https://core.trac.wordpress.org/ticket/64152