[wp-trac] [WordPress Trac] #64152: REST comments endpoint does not return children for notes

WordPress Trac noreply at wordpress.org
Fri Oct 31 18:56:02 UTC 2025


#64152: REST comments endpoint does not return children for notes
---------------------------------------------+-----------------------------
 Reporter:  adamsilverstein                  |       Owner:
                                             |  adamsilverstein
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.9
Component:  REST API                         |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61105" 61105]:
 {{{
 #!CommitTicketReference repository="" revision="61105"
 Editor: Notes should not appear in the context of comments.

 Prevent notes from inadvertently showing up in the context of comments -
 including on the Dashboard recent comments widget and the “Mine” count on
 the Comments page. Notes are stored as a custom ‘note’ comment type and
 this change ensures the note type is only returned when explicitly
 requested, or when ‘all’ types are requested.

 The query for note children is modified to return all child notes. This
 fixes an issue where children were no longer being returned for the ‘note’
 type.

 Also fixes https://github.com/WordPress/gutenberg/issues/72548.


 Props adamsilverstein, timothyblynjacobs, shailu25, peterwilsoncc,
 westonruter, mamaduka, kadamwhite.
 Fixes #64145.
 Fixes #64152.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64152#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list