[wp-trac] [WordPress Trac] #43177: REST API allows empty comments containing only whitespace
WordPress Trac
noreply at wordpress.org
Sat Oct 24 22:44:53 UTC 2020
#43177: REST API allows empty comments containing only whitespace
--------------------------------------+--------------------------------
Reporter: jaswrks | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: REST API | Version: 5.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49303" 49303]:
{{{
#!CommitTicketReference repository="" revision="49303"
REST API, XML-RPC: Synchronise empty comment content checks.
The REST API and XML-RPC now uses the same detection methodology for empty
comment content as `wp_handle_comment_submission()`. Specifically,
comments now have their content trimmed and '0' is allowed.
Props jaswrks, rmccue, dd32, rachelbaker, Cawa-93, aduth,
TimothyBlynJacobs.
Fixes #43177.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43177#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list