[wp-trac] [WordPress Trac] #64049: REST API: Updating comment via REST does not respect allow_empty_comment filter

WordPress Trac noreply at wordpress.org
Wed Oct 15 20:29:08 UTC 2025


#64049: REST API: Updating comment via REST does not respect allow_empty_comment
filter
--------------------------+------------------------------
 Reporter:  kadamwhite    |       Owner:  kadamwhite
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------
Changes (by kadamwhite):

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


Comment:

 In [changeset:"60937" 60937]:
 {{{
 #!CommitTicketReference repository="" revision="60937"
 REST API: Allow comment content to be updated to empty when
 allow_empty_comment filter returns true

 This filter was already respected during comment creation, but not
 updates. This was inconsistent between POST and PUT, and prevented erasing
 content of moderated comments via the API without deleting the entire
 object.

 Props adamsilverstein, kadamwhite, davidbaumwald, mukesh27,
 timothyblynjacobs.
 Fixes #64049.
 }}}

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


More information about the wp-trac mailing list