[wp-trac] [WordPress Trac] #43177: REST API allows empty comments containing only whitespace
WordPress Trac
noreply at wordpress.org
Tue Aug 28 02:37:53 UTC 2018
#43177: REST API allows empty comments containing only whitespace
-------------------------------------------------+-------------------------
Reporter: jaswrks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch needs- | Focuses: rest-api
refresh |
-------------------------------------------------+-------------------------
Changes (by rachelbaker):
* keywords: needs-unit-tests has-patch => needs-unit-tests has-patch
needs-refresh
Comment:
In [attachment:"43177.2.patch"] I don't see the need for the edit on ajax-
actions.php since `trim` is already called on `$comment-content` see:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/ajax-
actions.php#L1137
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43177#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list